Fix scrolling when there's already enough space.
Scrollbars for ScrollableAreas in spaces large enough that they
don't need to scroll are now fixed at 0, rather than flickering
between the top and bottom when the scrollwheel is used.
@@ -218,7 +218,7 @@ public void bindRange(Binding<Integer> binding) {
* @return The max value scrollable to.
*/
public int getRange() {
- return range.get();
+ return Math.max(0, range.get());
}
/**
