Currently, I am using CSS3 flex boxes
along with jQuery UI
for drag and drop functionality.
One issue I am facing is that when I apply justify-content:space-around;
, dragging a flex child outside of the container does not cause the remaining items to rearrange according to the justify-content
property.
You can view this behavior in action on this JSFiddle
I am looking for a solution where the items automatically re-arrange themselves once an item is dragged out (rearranging to flex-start
, flex-end
, center
, or any other desired position). I want them to flow smoothly after an item is removed.
Any suggestions on how I can address this issue?