mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 06:37:52 +00:00
LibGUI: Add a DontResizeColumns option to Model::UpdateFlag
This allows an application to signal that column sizes do not need to be recalculated for a given model update.
This commit is contained in:
committed by
Ali Mohammad Pur
parent
99570cb0c4
commit
59855e49df
@@ -352,7 +352,9 @@ void AbstractTableView::model_did_update(unsigned flags)
|
||||
{
|
||||
AbstractView::model_did_update(flags);
|
||||
update_row_sizes();
|
||||
update_column_sizes();
|
||||
if (!(flags & Model::UpdateFlag::DontResizeColumns))
|
||||
update_column_sizes();
|
||||
|
||||
update_content_size();
|
||||
update();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user