]> source.dussan.org Git - jquery-ui.git/commitdiff
Bug fix for another use case, see comment by whittet here: http://bugs.jqueryui.com...
authorwhittet <whittet@gmail.com>
Wed, 27 Apr 2011 14:21:29 +0000 (07:21 -0700)
committerScott González <scott.gonzalez@gmail.com>
Mon, 2 May 2011 21:46:20 +0000 (17:46 -0400)
(cherry picked from commit 2bf061ea6fd3bad7d6f5a77eebb22b7cc07140e4)

ui/jquery.ui.sortable.js

index aae7c6799cc0ba00557beb2ad32b4581a60512f9..91a42658f111cff9637cd67563a1f3d3f83f617c 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();