diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-16 09:50:38 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-16 09:50:38 +0100 |
commit | fe343a04977abee8ff284a35e810bf45404eb3e1 (patch) | |
tree | 761b45098de91d07b9e1fd889ec447f3d1506831 /Libraries/LibGUI/ItemView.cpp | |
parent | 2143da6434d3ee0d0e33c57533387b9f0f5fce30 (diff) | |
download | serenity-fe343a04977abee8ff284a35e810bf45404eb3e1.zip |
LibGUI: ItemView painting was not respecting the frame thickness
Fixes #1112.
Diffstat (limited to 'Libraries/LibGUI/ItemView.cpp')
-rw-r--r-- | Libraries/LibGUI/ItemView.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibGUI/ItemView.cpp b/Libraries/LibGUI/ItemView.cpp index bbd2db5cd2..4cae359cac 100644 --- a/Libraries/LibGUI/ItemView.cpp +++ b/Libraries/LibGUI/ItemView.cpp @@ -259,6 +259,7 @@ void ItemView::paint_event(PaintEvent& event) painter.add_clip_rect(widget_inner_rect()); painter.add_clip_rect(event.rect()); painter.fill_rect(event.rect(), widget_background_color); + painter.translate(frame_thickness(), frame_thickness()); painter.translate(-horizontal_scrollbar().value(), -vertical_scrollbar().value()); auto column_metadata = model()->column_metadata(m_model_column); |