]> source.dussan.org Git - jquery-ui.git/commitdiff
draggable: removed helpr animation from connectToSortable in favor of callbacks
authorPaul Bakaus <paul.bakaus@googlemail.com>
Sun, 25 May 2008 18:29:53 +0000 (18:29 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Sun, 25 May 2008 18:29:53 +0000 (18:29 +0000)
ui/source/ui.draggable.js

index 746326d040af14e5e2f02f6cdf1d5436400f428d..361b9a8d709392a03ebbb490b892f705c741abcc 100644 (file)
                                        if(!this.instance.isOver) {\r
                                                this.instance.isOver = 1;\r
 \r
-                                               //Cache the width/height of the new helper\r
-                                               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();\r
-                                               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();\r
-                                       \r
                                                //Now we fake the start of dragging for the sortable instance,\r
                                                //by cloning the list group item, appending it to the sortable and using it as inst.currentItem\r
                                                //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)\r
                                                this.instance.offset.left -= ui.absolutePosition.left - this.instance.position.absolute.left;\r
                                                this.instance.offset.top -= ui.absolutePosition.top - this.instance.position.absolute.top;\r
                                                \r
-                                               //Do a nifty little helper animation: Animate it to the portlet's size (just takes the first 'li' element in the sortable now)\r
-                                               this.instance.helperProportions = {width: width, height: height}; //We have to reset the helper proportions, because we are doing our animation there\r
-                                               ui.helper.animate({height: height, width: width}, 500);\r
                                                inst.propagate("toSortable", e);\r
                                        \r
                                        }\r
                                                this.instance.currentItem.remove();\r
                                                this.instance.placeholder.remove();\r
                                                \r
-                                               ui.helper.animate({ height: self.innerHeight(), width: self.innerWidth() }, 500);\r
                                                inst.propagate("fromSortable", e);\r
                                        }\r
                                        \r