summaryrefslogtreecommitdiff
path: root/Userland/Applications/Spreadsheet
diff options
context:
space:
mode:
authormartinfalisse <martinmotteditfalisse@gmail.com>2022-01-03 18:34:11 +0100
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2022-01-03 22:30:04 +0330
commitb39aede8fe19e7ef17ddc7f52c9ed1decef30e78 (patch)
treebb14c4dd0d6c5ba3c79d26f6daa0843ec756aabd /Userland/Applications/Spreadsheet
parent4711d789c95647d31e2435eec2195da4863f7e52 (diff)
downloadserenity-b39aede8fe19e7ef17ddc7f52c9ed1decef30e78.zip
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).
Diffstat (limited to 'Userland/Applications/Spreadsheet')
-rw-r--r--Userland/Applications/Spreadsheet/SpreadsheetView.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Applications/Spreadsheet/SpreadsheetView.cpp b/Userland/Applications/Spreadsheet/SpreadsheetView.cpp
index cd587cb776..941b286e3b 100644
--- a/Userland/Applications/Spreadsheet/SpreadsheetView.cpp
+++ b/Userland/Applications/Spreadsheet/SpreadsheetView.cpp
@@ -173,6 +173,7 @@ SpreadsheetView::SpreadsheetView(Sheet& sheet)
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_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();
};