Fix Widget::layout for Lazy

This commit is contained in:
Héctor Ramón Jiménez 2023-09-01 04:15:59 +02:00
parent 548b9d0294
commit 601e5563d1
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -157,7 +157,9 @@ where
limits: &layout::Limits,
) -> layout::Node {
self.with_element(|element| {
element.as_widget().layout(tree, renderer, limits)
element
.as_widget()
.layout(&mut tree.children[0], renderer, limits)
})
}