mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibGUI: Fix rendering GColumnsView separator
Patch by Sergey Bugaev.
This commit is contained in:
parent
7bc8fa884a
commit
6a529ea425
Notes:
sideshowbarker
2024-07-19 10:13:04 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/6a529ea4253
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue