Fix Widget::layout for Lazy
This commit is contained in:
parent
548b9d0294
commit
601e5563d1
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue