From b50bce3cb9b8b8e81f63cca4269282341b797c70 Mon Sep 17 00:00:00 2001 From: thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> Date: Thu, 22 Sep 2022 11:18:53 -0400 Subject: [PATCH] LibGUI: Don't draw Scrollbar button triangles if they'd be off-center --- Userland/Libraries/LibGUI/Scrollbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGUI/Scrollbar.cpp b/Userland/Libraries/LibGUI/Scrollbar.cpp index 76e268ffb8f..1abcf79fdc2 100644 --- a/Userland/Libraries/LibGUI/Scrollbar.cpp +++ b/Userland/Libraries/LibGUI/Scrollbar.cpp @@ -205,7 +205,7 @@ void Scrollbar::paint_event(PaintEvent& event) Gfx::StylePainter::paint_button(painter, decrement_button_rect(), palette(), Gfx::ButtonStyle::ThickCap, decrement_pressed, hovered_component_for_painting == Component::DecrementButton); Gfx::StylePainter::paint_button(painter, increment_button_rect(), palette(), Gfx::ButtonStyle::ThickCap, increment_pressed, hovered_component_for_painting == Component::IncrementButton); - if (length(orientation()) > default_button_size()) { + if (length(orientation()) >= default_button_size() * 2) { auto decrement_location = decrement_button_rect().location().translated(3, 3); if (decrement_pressed) decrement_location.translate_by(1, 1);