diff options
author | 2022-01-13 15:42:40 +0700 | |
---|---|---|
committer | 2022-01-13 15:42:40 +0700 | |
commit | 15a13a76b4b0534d08afc0328b90267048e41b9d (patch) | |
tree | dd5fa045c9fd3f8f116f230c3e70dcba2d32d011 /native/src/widget/scrollable.rs | |
parent | 1a31aefab401712e44cd613fc1337ab90579d926 (diff) | |
parent | f6c436aec1acb674078bf7e878b9e49f28e947a7 (diff) | |
download | iced-15a13a76b4b0534d08afc0328b90267048e41b9d.tar.gz iced-15a13a76b4b0534d08afc0328b90267048e41b9d.tar.bz2 iced-15a13a76b4b0534d08afc0328b90267048e41b9d.zip |
Merge pull request #1193 from iced-rs/responsive-widget
`Responsive` widget
Diffstat (limited to 'native/src/widget/scrollable.rs')
-rw-r--r-- | native/src/widget/scrollable.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/native/src/widget/scrollable.rs b/native/src/widget/scrollable.rs index 3ef737c0..4b005c6b 100644 --- a/native/src/widget/scrollable.rs +++ b/native/src/widget/scrollable.rs @@ -427,6 +427,7 @@ where layout: Layout<'_>, cursor_position: Point, _viewport: &Rectangle, + renderer: &Renderer, ) -> mouse::Interaction { let bounds = layout.bounds(); let content_layout = layout.children().next().unwrap(); @@ -457,6 +458,7 @@ where y: bounds.y + offset as f32, ..bounds }, + renderer, ) } } @@ -581,11 +583,12 @@ where fn overlay( &mut self, layout: Layout<'_>, + renderer: &Renderer, ) -> Option<overlay::Element<'_, Message, Renderer>> { let Self { content, state, .. } = self; content - .overlay(layout.children().next().unwrap()) + .overlay(layout.children().next().unwrap(), renderer) .map(|overlay| { let bounds = layout.bounds(); let content_layout = layout.children().next().unwrap(); |