mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +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
Notes:
sideshowbarker
2024-07-17 00:35:35 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/d32961777b Pull-request: https://github.com/SerenityOS/serenity/pull/17400
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…
Reference in a new issue