LibGUI: Fix rendering GColumnsView separator

Patch by Sergey Bugaev.
This commit is contained in:
Andreas Kling 2020-01-10 18:25:30 +01:00
parent 7bc8fa884a
commit 6a529ea425
Notes: sideshowbarker 2024-07-19 10:13:04 +09:00

View File

@ -102,7 +102,10 @@ void GColumnsView::paint_event(GPaintEvent& event)
}
}
painter.draw_line({ column_x + column.width, 0 }, { column_x + column.width, frame_inner_rect().bottom() }, palette().button());
int separator_height = content_size().height();
if (height() > separator_height)
separator_height = height();
painter.draw_line({ column_x + column.width, 0 }, { column_x + column.width, separator_height }, palette().button());
column_x += column.width + 1;
}
}