mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-02-01 11:25:07 -05:00
Sortables performance increased massively - using offsetWidth/offsetHeight to refreshPostions instead of outerWidth/outerHeight
This commit is contained in:
@@ -197,8 +197,8 @@ $.widget("ui.sortable", $.extend($.ui.mouse, {
|
||||
var t = this.options.toleranceElement ? $(this.options.toleranceElement, this.items[i].item) : this.items[i].item;
|
||||
|
||||
if(!fast) {
|
||||
this.items[i].width = t.outerWidth();
|
||||
this.items[i].height = t.outerHeight();
|
||||
this.items[i].width = t[0].offsetWidth;
|
||||
this.items[i].height = t[0].offsetHeight;
|
||||
}
|
||||
|
||||
var p = t.offset();
|
||||
|
||||
Reference in New Issue
Block a user