From 75b29b66df66a92cc90b3f5079840cbf147f59d6 Mon Sep 17 00:00:00 2001 From: Eduardo Lundgren Date: Mon, 30 Jun 2008 13:43:09 +0000 Subject: [PATCH] Sortables performance increased massively - using offsetWidth/offsetHeight to refreshPostions instead of outerWidth/outerHeight --- ui/ui.sortable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/ui.sortable.js b/ui/ui.sortable.js index 52779026f..92f4a997e 100644 --- a/ui/ui.sortable.js +++ b/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();