From 3e4029d89b7def1aabecab025ad7bfcc20812635 Mon Sep 17 00:00:00 2001 From: Robert Müller Date: Fri, 10 Dec 2021 15:46:20 +0100 Subject: fix size of labeled scrollbar handle --- src/game/client/ui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/client/ui.cpp b/src/game/client/ui.cpp index 44c66cfa5..cf65fcf6a 100644 --- a/src/game/client/ui.cpp +++ b/src/game/client/ui.cpp @@ -498,7 +498,7 @@ float CUI::DoScrollbarV(const void *pID, const CUIRect *pRect, float Current) pRect->VMargin(5.0f, &Rail); CUIRect Handle; - Rail.HSplitTop(clamp(33.0f, Rail.w, Rail.h / 8.0f), &Handle, 0); + Rail.HSplitTop(clamp(33.0f, Rail.w, Rail.h / 3.0f), &Handle, 0); Handle.y += (Rail.h - Handle.h) * Current; // logic @@ -560,7 +560,7 @@ float CUI::DoScrollbarH(const void *pID, const CUIRect *pRect, float Current) pRect->HMargin(5.0f, &Rail); CUIRect Handle; - Rail.VSplitLeft(clamp(33.0f, Rail.h, Rail.w / 8.0f), &Handle, 0); + Rail.VSplitLeft(clamp(33.0f, Rail.h, Rail.w / 3.0f), &Handle, 0); Handle.x += (Rail.w - Handle.w) * Current; // logic -- cgit v1.2.3