From 83b0850878c72c0d97d2f2e3665f1a5a18844819 Mon Sep 17 00:00:00 2001 From: HJfod <60038575+HJfod@users.noreply.github.com> Date: Thu, 30 Mar 2023 19:20:17 +0300 Subject: [PATCH] fix scrollbar going funky on DevTools description --- loader/src/ui/nodes/Scrollbar.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/loader/src/ui/nodes/Scrollbar.cpp b/loader/src/ui/nodes/Scrollbar.cpp index 6f4658b8..a3731919 100644 --- a/loader/src/ui/nodes/Scrollbar.cpp +++ b/loader/src/ui/nodes/Scrollbar.cpp @@ -111,11 +111,17 @@ void Scrollbar::draw() { if (fHeightTop() > 0.0f) { thumbHeight -= fHeightTop(); + if (thumbHeight < 15.f) { + thumbHeight = 15.f; + } thumbPosY -= fHeightTop(); } if (fHeightBottom() < 0.f) { thumbHeight += fHeightBottom(); + if (thumbHeight < 15.f) { + thumbHeight = 15.f; + } thumbPosY -= fHeightBottom(); }