From: Severin Meyer Date: Sun, 14 Dec 2014 16:03:05 +0000 (+0100) Subject: Increase the minimal height of the scrollbar thumb, to fully show the two unstretchab... X-Git-Tag: xonotic-v0.8.0~85^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=733f9c735dd113079cfdad6aa3810acfc41e501a;p=xonotic%2Fxonotic-data.pk3dir.git Increase the minimal height of the scrollbar thumb, to fully show the two unstretchable ends of the thumb image --- 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? {