1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:37:45 +00:00

LibGUI: Update ListView content size on relevant layout changes

Fixes incorrect content sizing when unnecessary scrollbars are hidden.
This commit is contained in:
thankyouverycool 2022-09-21 08:11:40 -04:00 committed by Andreas Kling
parent 8b4bf96db3
commit 7858f885fe
2 changed files with 7 additions and 0 deletions

View file

@ -54,6 +54,7 @@ private:
virtual void keydown_event(KeyEvent&) override;
virtual void resize_event(ResizeEvent&) override;
virtual void mousemove_event(MouseEvent&) override;
virtual void layout_relevant_change_occured() override;
Gfx::IntRect content_rect(int row) const;
void update_content_size();