fix(toast): implement drag_destinations
This commit is contained in:
parent
8e67f3ce1c
commit
a5996b4e90
1 changed files with 15 additions and 0 deletions
|
|
@ -160,6 +160,21 @@ where
|
|||
))
|
||||
}
|
||||
}
|
||||
|
||||
fn drag_destinations(
|
||||
&self,
|
||||
state: &Tree,
|
||||
layout: Layout<'_>,
|
||||
renderer: &Renderer,
|
||||
dnd_rectangles: &mut iced_style::core::clipboard::DndDestinationRectangles,
|
||||
) {
|
||||
self.content.as_widget().drag_destinations(
|
||||
&state.children[0],
|
||||
layout,
|
||||
renderer,
|
||||
dnd_rectangles,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
struct ToasterOverlay<'a, 'b, Message, Theme = iced::Theme, Renderer = iced::Renderer> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue