diff --git a/src/widget/dnd_destination.rs b/src/widget/dnd_destination.rs index c943d2c7..947d2fe3 100644 --- a/src/widget/dnd_destination.rs +++ b/src/widget/dnd_destination.rs @@ -597,14 +597,12 @@ impl Widget }; dnd_rectangles.push(my_dest); - if let Some(child_layout) = layout.children().next() { - self.container.as_widget().drag_destinations( - &state.children[0], - child_layout.with_virtual_offset(layout.virtual_offset()), - renderer, - dnd_rectangles, - ); - } + self.container.as_widget().drag_destinations( + &state.children[0], + layout, + renderer, + dnd_rectangles, + ); } fn id(&self) -> Option {