Date: | 2014-08-12 00:01:40 (9 years 7 months ago) |
---|---|
Author: | Maarten ter Huurne |
Commit: | 6492ab2fa24aaa7dde2fe677e54760cb550a0b81 |
Message: | Apply a minimum size for the scroll bar thumb On long lists the computed size can become less than 1 pixel. |
Files: |
src/gmenu2x.cpp (1 diff) |
Change Details
src/gmenu2x.cpp | ||
---|---|---|
1088 | 1088 | top += 2; |
1089 | 1089 | height -= 4; |
1090 | 1090 | |
1091 | const uint barSize = height * pageSize / totalSize; | |
1091 | const uint barSize = max(height * pageSize / totalSize, 4u); | |
1092 | 1092 | const uint barPos = (height - barSize) * pagePos / (totalSize - pageSize); |
1093 | 1093 | |
1094 | 1094 | s->box(resX - 6, top + barPos, 3, barSize, |
Branches:
install_locations
master
opkrun
packages