1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 16:24:59 +00:00

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

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;
}
}