mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-31 21:59:21 +00:00
LibGUI: Scroll AbstractView to top on model change
This commit is contained in:
@@ -56,6 +56,7 @@ void AbstractView::set_model(RefPtr<Model> model)
|
||||
if (m_model)
|
||||
m_model->register_view({}, *this);
|
||||
did_update_model(GUI::Model::InvalidateAllIndexes);
|
||||
scroll_to_top();
|
||||
}
|
||||
|
||||
void AbstractView::did_update_model(unsigned flags)
|
||||
|
||||
Reference in New Issue
Block a user