summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Scrollbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibGUI/Scrollbar.cpp')
-rw-r--r--Userland/Libraries/LibGUI/Scrollbar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/Scrollbar.cpp b/Userland/Libraries/LibGUI/Scrollbar.cpp
index 88deb7edb0..199443e136 100644
--- a/Userland/Libraries/LibGUI/Scrollbar.cpp
+++ b/Userland/Libraries/LibGUI/Scrollbar.cpp
@@ -150,7 +150,7 @@ Gfx::IntRect Scrollbar::scrubber_rect() const
if (value() == min())
x_or_y = button_size();
else if (value() == max())
- x_or_y = (length(orientation()) - button_size() - visible_scrubber_size()) + 1;
+ x_or_y = length(orientation()) - button_size() - visible_scrubber_size();
else {
float range_size = max() - min();
float available = scrubbable_range_in_pixels();