summaryrefslogtreecommitdiffstats
path: root/native/src/widget/tooltip.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-08-26 19:44:22 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-08-26 19:44:22 +0200
commita5209f24e4a997387ffb77c21c103867eca65b1e (patch)
tree1327a7bb8a3673a9978d733e78efc4500e002f71 /native/src/widget/tooltip.rs
parentda7e8598406fcde2a33ea749d561a2f10dbb5407 (diff)
downloadiced-a5209f24e4a997387ffb77c21c103867eca65b1e.tar.gz
iced-a5209f24e4a997387ffb77c21c103867eca65b1e.tar.bz2
iced-a5209f24e4a997387ffb77c21c103867eca65b1e.zip
Fix incorrect layout in `mouse_interaction` for `Tooltip`
Diffstat (limited to 'native/src/widget/tooltip.rs')
-rw-r--r--native/src/widget/tooltip.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/native/src/widget/tooltip.rs b/native/src/widget/tooltip.rs
index 667f1812..7ce2aaae 100644
--- a/native/src/widget/tooltip.rs
+++ b/native/src/widget/tooltip.rs
@@ -159,7 +159,7 @@ where
) -> mouse::Interaction {
self.content.as_widget().mouse_interaction(
&tree.children[0],
- layout.children().next().unwrap(),
+ layout,
cursor_position,
viewport,
renderer,