Skip to content

Commit 2bf061e

Browse files
committed
Bug fix for another use case, see comment by whittet here: http://bugs.jqueryui.com/ticket/6702
1 parent cd61fb1 commit 2bf061e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.sortable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ $.widget("ui.sortable", $.ui.mouse, {
5050
this.refresh();
5151

5252
//Let's determine if the items are being displayed horizontally
53-
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;
53+
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;
5454

5555
//Let's determine the parent's offset
5656
this.offset = this.element.offset();

0 commit comments

Comments
 (0)