mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibGUI: Adjust grabbable rect between Splitter widgets
Previously, the rect began on the edge of the first widget instead of immediately after, causing an overpaint visible on hover.
This commit is contained in:
parent
ffe9b1d434
commit
495fd1d2c4
Notes:
sideshowbarker
2024-07-17 23:07:41 +09:00
Author: https://github.com/thankyouverycool
Commit: 495fd1d2c4
Pull-request: https://github.com/SerenityOS/serenity/pull/12681
Issue: https://github.com/SerenityOS/serenity/issues/12561
Reviewed-by: https://github.com/IdanHo ✅
1 changed files with 2 additions and 2 deletions
|
@ -145,8 +145,8 @@ Gfx::IntRect Splitter::rect_between_widgets(GUI::Widget const& first_widget, GUI
|
|||
auto first_edge = first_widget_rect.last_edge_for_orientation(m_orientation);
|
||||
auto second_edge = second_widget_rect.first_edge_for_orientation(m_orientation);
|
||||
Gfx::IntRect rect;
|
||||
rect.set_primary_offset_for_orientation(m_orientation, first_edge);
|
||||
rect.set_primary_size_for_orientation(m_orientation, second_edge - first_edge);
|
||||
rect.set_primary_offset_for_orientation(m_orientation, first_edge + 1);
|
||||
rect.set_primary_size_for_orientation(m_orientation, second_edge - first_edge - 1);
|
||||
rect.set_secondary_offset_for_orientation(m_orientation, 0);
|
||||
rect.set_secondary_size_for_orientation(m_orientation, relative_rect().secondary_size_for_orientation(m_orientation));
|
||||
return rect;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue