I need to ha a simple list of elements that can be dragged to a sortable div. Very simple stuff. But my div that contains the sortable elements is position:relative and need to stay like that. This create an issue that you can see here : http://jsfiddle.net/yynqweuj/1/
<ul>
<li id="draggable" class="ui-state-highlight">Drag me down</li>
</ul>
<ul id="sortable" style="position:relative;">
<li class="ui-state-default">Item 1</li>
<li class="ui-state-default">Item 2</li>
<li class="ui-state-default">Item 3</li>
<li class="ui-state-default">Item 4</li>
<li class="ui-state-default">Item 5</li>
</ul>
If your start to drag the "drag me down" element a red square appears as an helper and is centered on the cursor, if you enter the element into the sortable it's still OK, but when you leave the sortable zone the red square moves. This is because the container is with position relative and also because of an update from JQuery UI (I think).
I tried with older versions like 1.10.2 and there is no problem, because the helper is always append to the body but now with the last stable version 1.11.2 it's append to the body but when you enter the sortable zone it's append to the sortable list... And has it's in position relative, the math to calculate the position is wrong...
Any ideas ?
Thanks !