]> source.dussan.org Git - jquery-ui.git/commitdiff
Sortable: Changed floating calculation to determine also whether items are being...
authormichaelmwu <michaelmwu@gmail.com>
Sat, 5 Mar 2011 06:17:30 +0000 (22:17 -0800)
committerScott González <scott.gonzalez@gmail.com>
Mon, 7 Mar 2011 13:28:59 +0000 (08:28 -0500)
ui/jquery.ui.sortable.js

index a48350f27262e2985d552e8e76f8bd17523e9bde..15b6b81132b9c2f03edc991bf1a36161d0a1dcd8 100644 (file)
@@ -49,8 +49,8 @@ $.widget("ui.sortable", $.ui.mouse, {
                //Get the items
                this.refresh();
 
-               //Let's determine if the items are floating
-               this.floating = this.items.length ? (/left|right/).test(this.items[0].item.css('float')) : false;
+               //Let's determine if the items are being displayed horizontally
+               this.floating = this.items.length ? (/left|right/).test(this.items[0].item.css('float')) || (/inline|table-cell/).test(this.items[0].item.css('display')) : false;
 
                //Let's determine the parent's offset
                this.offset = this.element.offset();