Skip to content

Commit

Permalink
Fix Widget::layout implementation of MouseArea
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Sep 10, 2023
1 parent 1af5ff4 commit df72fd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion widget/src/mouse_area.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ where
renderer: &Renderer,
limits: &layout::Limits,
) -> layout::Node {
self.content.as_widget().layout(tree, renderer, limits)
self.content
.as_widget()
.layout(&mut tree.children[0], renderer, limits)
}

fn operate(
Expand Down

0 comments on commit df72fd1

Please sign in to comment.