Skip to content

Commit 4f63e5c

Browse files
committed
Merge pull request jquery#191 from whittet/patch-1.
Bug fix for another use case, see comment by whittet here: http://bugs.jq
2 parents d09599b + 2bf061e commit 4f63e5c

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)