1
Fork 0
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:
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

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