mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
Spreadsheet: Background fill color after reaching vertical end
When selecting a cell in the spreadsheet that was added automatically as per the InfinitelyScrollableTableView implementation, the background color is now filled correctly. Previously, when navigating horizontally in a spreadsheet, after a certain point the cells would not have the same background fill color as the user would have experienced in the previous column ranges (A-Z).
This commit is contained in:
parent
4711d789c9
commit
b39aede8fe
Notes:
sideshowbarker
2024-07-17 21:44:55 +09:00
Author: https://github.com/martinfalisse
Commit: b39aede8fe
Pull-request: https://github.com/SerenityOS/serenity/pull/11596
1 changed files with 1 additions and 0 deletions
|
@ -173,6 +173,7 @@ SpreadsheetView::SpreadsheetView(Sheet& sheet)
|
||||||
m_table_view->set_column_width(last_column_index, 50);
|
m_table_view->set_column_width(last_column_index, 50);
|
||||||
m_table_view->set_default_column_width(last_column_index, 50);
|
m_table_view->set_default_column_width(last_column_index, 50);
|
||||||
m_table_view->set_column_header_alignment(last_column_index, Gfx::TextAlignment::Center);
|
m_table_view->set_column_header_alignment(last_column_index, Gfx::TextAlignment::Center);
|
||||||
|
m_table_view->set_column_painting_delegate(last_column_index, make<TableCellPainter>(*m_table_view));
|
||||||
}
|
}
|
||||||
update_with_model();
|
update_with_model();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue