Changing placeholder size without reparenting #790
ampossardt
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a project with two droppable areas, where the first is a column which has a set of draggables that can be dragged into the second one, but not the other way around. For styling purposes, the first column's items are smaller, but when dragging over the second column, I animate the size of the element (both height and width) to match the second column's items. Naturally, the sizes don't match and the placeholder is calculated based on the original item's size, so I'm wondering if there's a way to alter or recalculate the placeholder itself without resorting to reparenting.
I can go the reparenting route if necessary, but I'd prefer not to have the overhead of it when all i really need is for the height of the placeholder to match the second droppable's item sizes. Is this possible or should I just reparent instead?
Beta Was this translation helpful? Give feedback.
All reactions