From: Richard Worth Date: Tue, 7 Jul 2009 10:41:42 +0000 (+0000) Subject: Fixed #4551 - Sortable connectWith fails if item is floated. Props dhlavety and jlill... X-Git-Tag: 1.8a1~76 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=56b0da59d71396a740cf48a75902243d561ba186;p=jquery-ui.git Fixed #4551 - Sortable connectWith fails if item is floated. Props dhlavety and jlillywhite. --- diff --git a/tests/visual/sortable/sortable_ticket_4551.html b/tests/visual/sortable/sortable_ticket_4551.html new file mode 100644 index 000000000..ba61e244a --- /dev/null +++ b/tests/visual/sortable/sortable_ticket_4551.html @@ -0,0 +1,51 @@ + + + + Sortable Visual Test : Sortable ticket #4551 + + + + + + + + + + +

#4551 - Sortable connectWith fails if item is floated

+ +
+
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
+ +
+
+ +
+
12
+
14
+
+ + + diff --git a/ui/ui.sortable.js b/ui/ui.sortable.js index 12f18b619..f2d5dc4ed 100644 --- a/ui/ui.sortable.js +++ b/ui/ui.sortable.js @@ -570,10 +570,6 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, { for (var i = this.items.length - 1; i >= 0; i--){ var item = this.items[i]; - //We ignore calculating positions of all connected containers when we're not over them - if(item.instance != this.currentContainer && this.currentContainer && item.item[0] != this.currentItem[0]) - continue; - var t = this.options.toleranceElement ? $(this.options.toleranceElement, item.item) : item.item; if (!fast) {