1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 20:25:07 +00:00

LibGUI: GTableView was accidentally obscuring the last row.

This commit is contained in:
Andreas Kling 2019-02-28 16:42:18 +01:00
parent 75fabef57b
commit 28652a0bf7

View file

@ -94,7 +94,6 @@ void GTableView::paint_event(GPaintEvent&)
}
painter.fill_rect(row_rect(painted_item_index), background_color);
int x_offset = 0;
for (int column_index = 0; column_index < m_model->column_count(); ++column_index) {
auto column_metadata = m_model->column_metadata(column_index);
@ -106,7 +105,7 @@ void GTableView::paint_event(GPaintEvent&)
++painted_item_index;
};
Rect unpainted_rect(0, painted_item_index * item_height(), width(), height());
Rect unpainted_rect(0, header_height() + painted_item_index * item_height(), width(), height());
unpainted_rect.intersect(rect());
painter.fill_rect(unpainted_rect, Color::White);