Skip to content
Permalink
Browse files

Merge pull request #191 from whittet/patch-1.

Bug fix for another use case, see comment by whittet here: http://bugs.jq
  • Loading branch information...
scottgonzalez committed May 2, 2011
2 parents d09599b + 2bf061e commit 4f63e5ca6c3e1194f89484c43e98913ce4efa1e4
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.sortable.js
@@ -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();

0 comments on commit 4f63e5c

Please sign in to comment.
You can’t perform that action at this time.