diff --git a/widget/src/scrollable.rs b/widget/src/scrollable.rs index c7b5bfc98c..52bed5823e 100644 --- a/widget/src/scrollable.rs +++ b/widget/src/scrollable.rs @@ -1423,7 +1423,8 @@ impl Scrollbars { height: (bounds.height - x_scrollbar_height).max(0.0), }; - let ratio = bounds.height / content_bounds.height.max(bounds.height); + let ratio = + bounds.height / content_bounds.height.max(bounds.height); // min height for easier grabbing with super tall content let scroller_height = (scrollbar_bounds.height * ratio).max(2.0); let scroller_offset =