mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-25 04:11:42 -04: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…
Add table
Reference in a new issue