mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:48:14 +00:00
Spreadsheet: Implement infinite-scroll for rows
Every time the scrollbar reaches the end, we append 100 more rows (seamlessly!). As a result of defaulting to 100 rows, we can also save with the smallest number of rows required. This partially deals with #4170.
This commit is contained in:
parent
71de8b7480
commit
f6ae4edbd2
5 changed files with 69 additions and 11 deletions
|
@ -170,6 +170,7 @@ void SheetModel::set_data(const GUI::ModelIndex& index, const GUI::Variant& valu
|
|||
void SheetModel::update()
|
||||
{
|
||||
m_sheet->update();
|
||||
did_update(UpdateFlag::DontInvalidateIndexes);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue