mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-23 07:57:51 -05:00
fix scrollbar going funky on DevTools description
This commit is contained in:
parent
585a9de18d
commit
83b0850878
1 changed files with 6 additions and 0 deletions
|
@ -111,11 +111,17 @@ void Scrollbar::draw() {
|
|||
|
||||
if (fHeightTop() > 0.0f) {
|
||||
thumbHeight -= fHeightTop();
|
||||
if (thumbHeight < 15.f) {
|
||||
thumbHeight = 15.f;
|
||||
}
|
||||
thumbPosY -= fHeightTop();
|
||||
}
|
||||
|
||||
if (fHeightBottom() < 0.f) {
|
||||
thumbHeight += fHeightBottom();
|
||||
if (thumbHeight < 15.f) {
|
||||
thumbHeight = 15.f;
|
||||
}
|
||||
thumbPosY -= fHeightBottom();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue