Skip to content

Commit

Permalink
fix: dnd widget layout
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Dec 1, 2023
1 parent 14ef12f commit d67f1a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion widget/src/dnd_listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,11 @@ where
u32::MAX,
u32::MAX,
|renderer, limits| {
self.content.as_widget().layout(tree, renderer, limits)
self.content.as_widget().layout(
&mut tree.children[0],
renderer,
limits,
)
},
)
}
Expand Down
6 changes: 5 additions & 1 deletion widget/src/dnd_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,11 @@ where
u32::MAX,
u32::MAX,
|renderer, limits| {
self.content.as_widget().layout(tree, renderer, limits)
self.content.as_widget().layout(
&mut tree.children[0],
renderer,
limits,
)
},
)
}
Expand Down

0 comments on commit d67f1a1

Please sign in to comment.