summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widget/src/scrollable.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/widget/src/scrollable.rs b/widget/src/scrollable.rs
index b6111975..79e5fe3e 100644
--- a/widget/src/scrollable.rs
+++ b/widget/src/scrollable.rs
@@ -1099,8 +1099,10 @@ impl Offset {
pub struct Viewport {
offset_x: Offset,
offset_y: Offset,
- bounds: Rectangle,
- content_bounds: Rectangle,
+ /// The viewport bounds of the [`Scrollable`].
+ pub bounds: Rectangle,
+ /// The content bounds of the [`Scrollable`].
+ pub content_bounds: Rectangle,
}
impl Viewport {