Sortable positioning problem
Hi,
I'm using the sortable ui plugin for dragging and sorting items from
one container to the other. My goal is it, that a dragged item will
adjust it's css and evanually it's content depending on the container
it's dragged over even before it is dropped. For that porpose I used
the over and out events to append the ui.helper object to the specific
container and to manipulate it's content.
This is working fine, as long as all the draggable items have the same
offset parent. If that is not the case, the dragged item will move
away from the cursor when it's appended to a different dom element,
clearly because the new offset parent has a different position than
the previous one.
To solve this I tried to adjust the position of the dragged item after
moving it around in the dom. But this doesn't work, as there are some
offset and positioning parameters saved internally and used when
evaluating the mousemove event.
Is there any way to access these parameters? Or even better to trigger
a repositioning event?
Many thanks in advance, T