mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Sortables performance increased massively - using offsetWidth/offsetHeight to refreshPostions instead of outerWidth/outerHeight
This commit is contained in:
parent
3603a87d7d
commit
75b29b66df
@ -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;
|
var t = this.options.toleranceElement ? $(this.options.toleranceElement, this.items[i].item) : this.items[i].item;
|
||||||
|
|
||||||
if(!fast) {
|
if(!fast) {
|
||||||
this.items[i].width = t.outerWidth();
|
this.items[i].width = t[0].offsetWidth;
|
||||||
this.items[i].height = t.outerHeight();
|
this.items[i].height = t[0].offsetHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
var p = t.offset();
|
var p = t.offset();
|
||||||
|
Loading…
Reference in New Issue
Block a user