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
commit 7858f885fe
Notes: sideshowbarker 2024-07-17 06:42:50 +09:00
2 changed files with 7 additions and 0 deletions

View file

@ -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);