summaryrefslogtreecommitdiffstats
path: root/runtime/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-06-14 11:27:42 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-06-14 11:27:42 +0200
commit9803b276ad087846dfc3bb349113c5799ce00141 (patch)
tree4a95386401a0dd87f5f87c0695a40c58a372ecb2 /runtime/src
parent87db76a11ffd0e3e2350c2b2531fde1c56ffeea6 (diff)
downloadiced-9803b276ad087846dfc3bb349113c5799ce00141.tar.gz
iced-9803b276ad087846dfc3bb349113c5799ce00141.tar.bz2
iced-9803b276ad087846dfc3bb349113c5799ce00141.zip
Fix cursor availability in `overlay::Nested::draw`
Diffstat (limited to 'runtime/src')
-rw-r--r--runtime/src/overlay/nested.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/src/overlay/nested.rs b/runtime/src/overlay/nested.rs
index 5c5fafde..cd258ab6 100644
--- a/runtime/src/overlay/nested.rs
+++ b/runtime/src/overlay/nested.rs
@@ -94,7 +94,7 @@ where
.and_then(|(cursor_position, nested_layout)| {
element.overlay(layout, renderer).map(|nested| {
nested.is_over(
- nested_layout,
+ nested_layout.children().next().unwrap(),
renderer,
cursor_position,
)