diff options
author | oy <tom_adams@web.de> | 2021-12-10 15:56:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-10 15:56:01 +0100 |
commit | df933276028c741355271deb0e04607ff43ca523 (patch) | |
tree | d0da54ed0042f1d2585106049a27520066e02a80 | |
parent | 2999232a9255d257ee11076a9fafe102b3dfbeb1 (diff) | |
parent | 3e4029d89b7def1aabecab025ad7bfcc20812635 (diff) |
Merge pull request #2995 from Robyt3/ui-fix-scrollbar-labeled
Fix size of labeled scrollbar handle
-rw-r--r-- | src/game/client/ui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/client/ui.cpp b/src/game/client/ui.cpp index 5ef7f9ff5..3b69db1e8 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 |