Draggable div's with images and containment
Is there a method to doing this properly? I was testing out a grid of draggable objects, and decided to create an image, then a div, then another image inside the draggable object. This works, but containment ceases to work.
There seems to be a problem when the combination of image/div/image is inside the draggable div. It can be dragged outside containment and shifts everything about.
If it's image/image it respects containment. If it's just the div inside the draggable object, it respects containment.
I'm not sure I understand the principle here.