aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Lundgren <eduardolundgren@gmail.com>2008-06-30 13:43:09 +0000
committerEduardo Lundgren <eduardolundgren@gmail.com>2008-06-30 13:43:09 +0000
commit75b29b66df66a92cc90b3f5079840cbf147f59d6 (patch)
tree80221e4ddcd7fa728cf322172fc9571ef9a6de96
parent3603a87d7d4a065b25f2514ff085d67773702994 (diff)
downloadjquery-ui-75b29b66df66a92cc90b3f5079840cbf147f59d6.tar.gz
jquery-ui-75b29b66df66a92cc90b3f5079840cbf147f59d6.zip
Sortables performance increased massively - using offsetWidth/offsetHeight to refreshPostions instead of outerWidth/outerHeight
-rw-r--r--ui/ui.sortable.js4
1 files 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();