]> source.dussan.org Git - jquery-ui.git/commitdiff
Bug fix for another use case, see comment by whittet here: http://bugs.jqueryui.com... 191/head
authorwhittet <whittet@gmail.com>
Wed, 27 Apr 2011 14:21:29 +0000 (07:21 -0700)
committerwhittet <whittet@gmail.com>
Wed, 27 Apr 2011 14:21:29 +0000 (07:21 -0700)
ui/jquery.ui.sortable.js

index 131fb50d0468b77bbe1c399f2a8069e831ff5734..78349669a2e5c01267dca443f6237f25a4c76b8e 100644 (file)
@@ -50,7 +50,7 @@ $.widget("ui.sortable", $.ui.mouse, {
                this.refresh();
 
                //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;
+               this.floating = this.items.length ? o.axis === 'x' || (/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();