]> 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)
committergnarf <gnarf@gnarf.net>
Tue, 8 Mar 2011 06:52:07 +0000 (00:52 -0600)
ui/jquery.ui.sortable.js

index 05cbf2132ac5bf16df955635370ce1378af43f63..8356eeb9fbefb9a350037510c7184a32fce2beda 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();