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