diff options
author | 2020-07-28 18:07:46 +0300 | |
---|---|---|
committer | 2021-02-15 19:37:46 +0300 | |
commit | a19f89d3a6af2804f2ac4e30f6d639b56a9bebfd (patch) | |
tree | 313320abe39ade1214723521b6a5aff56ad2edef /native/src/widget/scrollable.rs | |
parent | 4de164dcc7bc3524c8b20f9c734bc1a4ae4c83bc (diff) | |
download | iced-a19f89d3a6af2804f2ac4e30f6d639b56a9bebfd.tar.gz iced-a19f89d3a6af2804f2ac4e30f6d639b56a9bebfd.tar.bz2 iced-a19f89d3a6af2804f2ac4e30f6d639b56a9bebfd.zip |
feat(native): add Tooltip widget
Diffstat (limited to 'native/src/widget/scrollable.rs')
-rw-r--r-- | native/src/widget/scrollable.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/native/src/widget/scrollable.rs b/native/src/widget/scrollable.rs index 18cdf169..86a68f22 100644 --- a/native/src/widget/scrollable.rs +++ b/native/src/widget/scrollable.rs @@ -401,11 +401,17 @@ where fn overlay( &mut self, layout: Layout<'_>, + overlay_content_bounds: Option<Rectangle>, + cursor_position: Point, ) -> Option<overlay::Element<'_, Message, Renderer>> { let Self { content, state, .. } = self; content - .overlay(layout.children().next().unwrap()) + .overlay( + layout.children().next().unwrap(), + overlay_content_bounds, + cursor_position, + ) .map(|overlay| { let bounds = layout.bounds(); let content_layout = layout.children().next().unwrap(); |