mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:18:11 +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:
parent
99570cb0c4
commit
59855e49df
2 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue