chore: drag destinations for responsive widget
This commit is contained in:
parent
686c6afb8d
commit
86f985086f
1 changed files with 17 additions and 0 deletions
|
|
@ -191,6 +191,23 @@ where
|
||||||
translation,
|
translation,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn drag_destinations(
|
||||||
|
&self,
|
||||||
|
state: &Tree,
|
||||||
|
layout: Layout<'_>,
|
||||||
|
renderer: &Renderer,
|
||||||
|
dnd_rectangles: &mut crate::core::clipboard::DndDestinationRectangles,
|
||||||
|
) {
|
||||||
|
if let Some(l) = layout.children().next() {
|
||||||
|
self.content.as_widget().drag_destinations(
|
||||||
|
state,
|
||||||
|
l.with_virtual_offset(layout.virtual_offset()),
|
||||||
|
renderer,
|
||||||
|
dnd_rectangles,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, Message, Theme, Renderer>
|
impl<'a, Message, Theme, Renderer>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue