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
10881088    top += 2;
10891089    height -= 4;
10901090
1091    const uint barSize = height * pageSize / totalSize;
1091    const uint barSize = max(height * pageSize / totalSize, 4u);
10921092    const uint barPos = (height - barSize) * pagePos / (totalSize - pageSize);
10931093
10941094    s->box(resX - 6, top + barPos, 3, barSize,

Archive Download the corresponding diff file



interactive