Merge pull request #1421 from iced-rs/fix/tooltip-mouse-interaction

Fix incorrect layout in `mouse_interaction` for `Tooltip`
This commit is contained in:
Héctor Ramón 2022-08-26 20:05:38 +02:00 committed by GitHub
commit 94687696aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,