Implement pure::Component in iced_lazy

This commit is contained in:
Héctor Ramón Jiménez 2022-02-17 19:08:54 +07:00
parent 2737b21d34
commit da45b6c162
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
13 changed files with 530 additions and 21 deletions

View file

@ -233,13 +233,13 @@ where
}
fn overlay<'b>(
&'b mut self,
&'b self,
tree: &'b mut Tree,
layout: Layout<'_>,
renderer: &Renderer,
) -> Option<overlay::Element<'b, Message, Renderer>> {
self.content
.as_widget_mut()
.as_widget()
.overlay(
&mut tree.children[0],
layout.children().next().unwrap(),