Draggable connect with Sortable inside tabs
Using a draggable connected with a sortable:
is the draggable and sortable are display: none while they load (if they are ajaxed into a ui.tab), the positions of them are off.
ui.draggable (v1.7) calls sortable._refreshItems() on dragStart, but should instead use the method sortable.refresh();
DIff output:
- 449,450c449
< // sortable._refreshItems(); //Do a one-time refresh at start to refresh the containerCache
< sortable.refresh(); // Call refresh instead of refreshItems to also refreshPositions()
---
> sortable._refreshItems(); //Do a one-time refresh at start to refresh the containerCache
essentially replace line 499:
- sortable._refreshItems(); //Do a one-time refresh at start to refresh the containerCache
with this:
- sortable.refresh();
I have checked V1.8, and I believe the same problem to exist, but I did not check the line numbers in that version.