Skip to content
Permalink
Browse files

Sortables performance increased massively - using offsetWidth/offsetH…

…eight to refreshPostions instead of outerWidth/outerHeight
  • Loading branch information
eduardolundgren committed Jun 30, 2008
1 parent 3603a87 commit 75b29b66df66a92cc90b3f5079840cbf147f59d6
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/ui.sortable.js
@@ -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();

0 comments on commit 75b29b6

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