mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +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:
parent
8b4bf96db3
commit
7858f885fe
2 changed files with 7 additions and 0 deletions
|
@ -57,6 +57,12 @@ void ListView::resize_event(ResizeEvent& event)
|
|||
AbstractView::resize_event(event);
|
||||
}
|
||||
|
||||
void ListView::layout_relevant_change_occured()
|
||||
{
|
||||
update_content_size();
|
||||
AbstractView::layout_relevant_change_occured();
|
||||
}
|
||||
|
||||
void ListView::model_did_update(unsigned flags)
|
||||
{
|
||||
AbstractView::model_did_update(flags);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue