projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1458313
)
Increase the minimal height of the scrollbar thumb, to fully show the two unstretchab...
author
Severin Meyer <sev.ch@web.de>
Sun, 14 Dec 2014 16:03:05 +0000
(17:03 +0100)
committer
Severin Meyer <sev.ch@web.de>
Sun, 14 Dec 2014 16:03:05 +0000
(17:03 +0100)
qcsrc/menu/item/listbox.c
patch
|
blob
|
history
diff --git
a/qcsrc/menu/item/listbox.c
b/qcsrc/menu/item/listbox.c
index
0f9502d
..
d4eaab2
100644
(file)
--- 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?
{