Skip to content

Commit 75b29b6

Browse files
Sortables performance increased massively - using offsetWidth/offsetHeight to refreshPostions instead of outerWidth/outerHeight
1 parent 3603a87 commit 75b29b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/ui.sortable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ $.widget("ui.sortable", $.extend($.ui.mouse, {
197197
var t = this.options.toleranceElement ? $(this.options.toleranceElement, this.items[i].item) : this.items[i].item;
198198

199199
if(!fast) {
200-
this.items[i].width = t.outerWidth();
201-
this.items[i].height = t.outerHeight();
200+
this.items[i].width = t[0].offsetWidth;
201+
this.items[i].height = t[0].offsetHeight;
202202
}
203203

204204
var p = t.offset();

0 commit comments

Comments
 (0)