From e7a179ef4243aa48f37fe519885eabf89a89ac25 Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Sun, 25 May 2008 18:29:53 +0000 Subject: [PATCH] draggable: removed helpr animation from connectToSortable in favor of callbacks --- ui/source/ui.draggable.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ui/source/ui.draggable.js b/ui/source/ui.draggable.js index 746326d04..361b9a8d7 100644 --- a/ui/source/ui.draggable.js +++ b/ui/source/ui.draggable.js @@ -480,10 +480,6 @@ if(!this.instance.isOver) { this.instance.isOver = 1; - //Cache the width/height of the new helper - var height = this.instance.options.placeholderElement ? $(this.instance.options.placeholderElement, $(this.instance.options.items, this.instance.element)).innerHeight() : $(this.instance.options.items, this.instance.element).innerHeight(); - var width = this.instance.options.placeholderElement ? $(this.instance.options.placeholderElement, $(this.instance.options.items, this.instance.element)).innerWidth() : $(this.instance.options.items, this.instance.element).innerWidth(); - //Now we fake the start of dragging for the sortable instance, //by cloning the list group item, appending it to the sortable and using it as inst.currentItem //We can then fire the start event of the sortable with our passed browser event, and our own helper (so it doesn't create a new one) @@ -499,9 +495,6 @@ this.instance.offset.left -= ui.absolutePosition.left - this.instance.position.absolute.left; this.instance.offset.top -= ui.absolutePosition.top - this.instance.position.absolute.top; - //Do a nifty little helper animation: Animate it to the portlet's size (just takes the first 'li' element in the sortable now) - this.instance.helperProportions = {width: width, height: height}; //We have to reset the helper proportions, because we are doing our animation there - ui.helper.animate({height: height, width: width}, 500); inst.propagate("toSortable", e); } @@ -524,7 +517,6 @@ this.instance.currentItem.remove(); this.instance.placeholder.remove(); - ui.helper.animate({ height: self.innerHeight(), width: self.innerWidth() }, 500); inst.propagate("fromSortable", e); }