properly constrained tab

This commit is contained in:
K Simmons 2022-08-12 13:20:22 -07:00
parent ab9f073443
commit 03a344a272
2 changed files with 95 additions and 81 deletions

View file

@ -107,6 +107,9 @@ impl<V: View> DragAndDrop<V> {
Container::new(render(payload, cx))
.with_margin_left(position.x())
.with_margin_top(position.y())
.aligned()
.top()
.left()
.boxed()
})
.on_up(MouseButton::Left, |_, cx| {