Bug fix for another use case, see comment by whittet here: http://bugs.jqueryui.com/ticket/6702

(cherry picked from commit 2bf061ea6f)
This commit is contained in:
whittet 2011-04-27 07:21:29 -07:00 committed by Scott González
parent a6d8fd1480
commit f3737a9183

View 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();