mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-28 07:18:51 +00:00
LibGUI: Clip rubber band to IconView widget content area
Add a clip rect for the rubber band painter of widget_inner_rect This ensures the rubber band is not drawn over the scrollbars. Fixes #3926
This commit is contained in:
parent
82b42cefbd
commit
348cd0fdc1
Notes:
sideshowbarker
2024-07-19 17:32:27 +09:00
Author: https://github.com/AmusedNetwork
Commit: 348cd0fdc1
Pull-request: https://github.com/SerenityOS/serenity/pull/3958
Reviewed-by: https://github.com/awesomekling
1 changed files with 1 additions and 0 deletions
|
@ -471,6 +471,7 @@ void IconView::second_paint_event(PaintEvent& event)
|
|||
|
||||
Painter painter(*this);
|
||||
painter.add_clip_rect(event.rect());
|
||||
painter.add_clip_rect(widget_inner_rect());
|
||||
painter.translate(frame_thickness(), frame_thickness());
|
||||
painter.translate(-horizontal_scrollbar().value(), -vertical_scrollbar().value());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue