mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:58:11 +00:00
LibGUI: GTableView was accidentally obscuring the last row.
This commit is contained in:
parent
75fabef57b
commit
28652a0bf7
1 changed files with 1 additions and 2 deletions
|
@ -94,7 +94,6 @@ void GTableView::paint_event(GPaintEvent&)
|
||||||
}
|
}
|
||||||
|
|
||||||
painter.fill_rect(row_rect(painted_item_index), background_color);
|
painter.fill_rect(row_rect(painted_item_index), background_color);
|
||||||
|
|
||||||
int x_offset = 0;
|
int x_offset = 0;
|
||||||
for (int column_index = 0; column_index < m_model->column_count(); ++column_index) {
|
for (int column_index = 0; column_index < m_model->column_count(); ++column_index) {
|
||||||
auto column_metadata = m_model->column_metadata(column_index);
|
auto column_metadata = m_model->column_metadata(column_index);
|
||||||
|
@ -106,7 +105,7 @@ void GTableView::paint_event(GPaintEvent&)
|
||||||
++painted_item_index;
|
++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());
|
unpainted_rect.intersect(rect());
|
||||||
painter.fill_rect(unpainted_rect, Color::White);
|
painter.fill_rect(unpainted_rect, Color::White);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue