mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03: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
@ -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…
Reference in New Issue
Block a user