this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() };//Recache the helper size\r
if ($.ui.ddmanager && !o.dropBehaviour) $.ui.ddmanager.prepareOffsets(this, e);\r
\r
+ this.helper.addClass("ui-draggable-dragging");\r
this.mouseDrag(e); //Execute the drag once - this causes the helper not to be visible before getting its correct position\r
return true;\r
},\r
return false;\r
},\r
clear: function() {\r
+ this.helper.removeClass("ui-draggable-dragging");\r
if(this.options.helper != 'original' && !this.cancelHelperRemoval) this.helper.remove();\r
if($.ui.ddmanager) $.ui.ddmanager.current = null;\r
this.helper = null;\r
if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return false; // Bail if draggable and droppable are same element\r
\r
var childrenIntersection = false;\r
- this.element.find(".ui-droppable").each(function() {\r
+ this.element.find(".ui-droppable").not(".ui-draggable-dragging").each(function() {\r
var inst = $.data(this, 'droppable');\r
if(inst.options.greedy && $.ui.intersect(draggable, $.extend(inst, { offset: inst.element.offset() }), inst.options.tolerance)) {\r
childrenIntersection = true; return false;\r