From 733f9c735dd113079cfdad6aa3810acfc41e501a Mon Sep 17 00:00:00 2001 From: Severin Meyer Date: Sun, 14 Dec 2014 17:03:05 +0100 Subject: [PATCH] Increase the minimal height of the scrollbar thumb, to fully show the two unstretchable ends of the thumb image --- qcsrc/menu/item/listbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/menu/item/listbox.c b/qcsrc/menu/item/listbox.c index 0f9502d97..d4eaab2a7 100644 --- a/qcsrc/menu/item/listbox.c +++ b/qcsrc/menu/item/listbox.c @@ -309,7 +309,7 @@ void ListBox_updateControlTopBottom(entity me) me.controlBottom = min((me.scrollPos + 1) / me.getTotalHeight(me), 1); float minfactor; - minfactor = 1 * me.controlWidth / me.size_y * me.size_x; + minfactor = 2 * me.controlWidth / me.size_y * me.size_x; f = me.controlBottom - me.controlTop; if(f < minfactor) // FIXME good default? { -- 2.39.2