Skip to content

Commit

Permalink
Fix Widget::layout for Lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Sep 1, 2023
1 parent 548b9d0 commit 601e556
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion widget/src/lazy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}

Expand Down

0 comments on commit 601e556

Please sign in to comment.