Just like in my fiddle http://jsfiddle.net/meridius/95Wej/ I have some elements (draggables) which I want to programmatically (just by code, no user interaction) move to their corresponding droppables. This I can do.
What I don't know is why .droppable("drop") event isn't firing up.
I need droppable to register that it has draggable on it. Otherwise (in my more complex setup) there is some strange behavior when user moves that draggable.
I tried to .trigger("mousemove"), mousedown
, reinitialize .droppable()
after .position()
, but none of that helped.
EDIT:
"Strange" behavior was caused by maintaining position:relative;
, which I solved by setting it to absolute before calling .position()
.
Nevertheless the question about why the event isn't fired remains.