Skip to content

Commit

Permalink
Fix formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
dtzxporter committed Feb 24, 2024
1 parent b037c30 commit a21c219
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion widget/src/scrollable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit a21c219

Please sign in to comment.