aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2008-05-25 18:29:53 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2008-05-25 18:29:53 +0000
commite7a179ef4243aa48f37fe519885eabf89a89ac25 (patch)
treee68d5f7058bd1926e47f9f4536defb0fe1f7263e /ui
parentd0d8ee752df025ed109fdab002e19bc1c406d727 (diff)
downloadjquery-ui-e7a179ef4243aa48f37fe519885eabf89a89ac25.tar.gz
jquery-ui-e7a179ef4243aa48f37fe519885eabf89a89ac25.zip
draggable: removed helpr animation from connectToSortable in favor of callbacks
Diffstat (limited to 'ui')
-rw-r--r--ui/source/ui.draggable.js8
1 files changed, 0 insertions, 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);
}