mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:37:45 +00:00
Spreadsheet: Don't recalculate column sizes when no data has changed
Use the Model::UpdateFlag::DontResizeColumns option when performing a model update where no data has been changed. This improves navigation performance on large spreadsheets.
This commit is contained in:
parent
59855e49df
commit
d32961777b
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ void SheetModel::set_data(const GUI::ModelIndex& index, const GUI::Variant& valu
|
|||
void SheetModel::update()
|
||||
{
|
||||
m_sheet->update();
|
||||
did_update(UpdateFlag::DontInvalidateIndices);
|
||||
did_update(UpdateFlag::DontInvalidateIndices | Model::UpdateFlag::DontResizeColumns);
|
||||
}
|
||||
|
||||
CellsUndoCommand::CellsUndoCommand(Vector<CellChange> cell_changes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue