diff --git a/widget/src/scrollable.rs b/widget/src/scrollable.rs index fa5a58318f..d0c77e6b55 100644 --- a/widget/src/scrollable.rs +++ b/widget/src/scrollable.rs @@ -1137,16 +1137,6 @@ impl Viewport { } } - /// Returns the bounds of the current [`Viewport`]. - pub fn bounds(&self) -> Rectangle { - self.bounds - } - - /// Returns the content bounds of the current [`Viewport`]. - pub fn content_bounds(&self) -> Rectangle { - self.content_bounds - } - /// Returns the [`RelativeOffset`] of the current [`Viewport`]. pub fn relative_offset(&self) -> RelativeOffset { let AbsoluteOffset { x, y } = self.absolute_offset(); @@ -1156,6 +1146,16 @@ impl Viewport { RelativeOffset { x, y } } + + /// Returns the bounds of the current [`Viewport`]. + pub fn bounds(&self) -> Rectangle { + self.bounds + } + + /// Returns the content bounds of the current [`Viewport`]. + pub fn content_bounds(&self) -> Rectangle { + self.content_bounds + } } impl State {