rem:    if (this.isOutside) { reelHome(portletCont.id, parseInt(portletCont.style.left), parseInt(portletCont.style.top), 15); return; }  var position = 0; var positionFound = false; var container = DragDrop.firstContainer; var curContainer = null; var items = null;   while (container != null) { if (!positionFound) { position = 0; items = container.childNodes; for (var i=0; i<items.length; i++) { if (items[i].className == DragDrop.portletSpacerName) { if (items[i].portletId == portletBound.portletId) { positionFound = true; curContainer = container; break; } if (!items[i].isStatic) position++; 
add: if (placeHolder) { var container = placeHolder.parentNode; var columnId = container.columnId; var items = container.childNodes; var offsetBefore = Coordinates.northwestOffset(portletCont, true); var targetHeight = portletBound.offsetHeight; var targetPlaceholder = document.createElement("div"); var targetWidth = portletBound.offsetWidth; var position = 0;  targetPlaceholder.id = "portlet-target-place-holder"; targetPlaceholder.style.height = targetHeight + "px"; targetPlaceholder.style.fontSize = 0; curContainer.insertBefore(targetPlaceholder, portletBound);   if (is_ie) { portletCont.style.width = ""; portletBound.style.height = ""; }  curContainer.removeChild(portletBound); container.insertBefore(portletBound, placeHolder); placeHolder.parentNode.removeChild(placeHolder);  var destHeight = portletBound.offsetHeight; var destWidth = portletBound.offsetWidth; var offsetAfter = Coordinates.northwestOffset(portletCont, true); var offsetDelta = offsetAfter.minus(offsetBefore); var positionAfter = Coordinates.northwestPosition(portletCont); var positionCorrected = positionAfter.minus(offsetDelta); positionCorrected.reposition(portletCont);  portletBound.style.position = "relative"; portletCont.style.position = "absolute"; portletCont.style.overflow = "hidden"; portletCont.style.width = targetWidth + "px";  for (var i=0; i<items.length; i++) { if (items[i].className == DragDrop.portletBoundName) { if (items[i].portletId == portletBound.portletId) { break; 
context: 	onDragEnd : function(nwPosition, sePosition, nwOffset, seOffset) {			var portletCont = this;		var portletBound = portletCont.parentNode;		var curContainer = portletBound.parentNode;		var offsetBefore = Coordinates.northwestOffset(portletCont, true);				// Remove dragging style		portletCont.id = "dragging_" + portletBound.portletId;		portletBound.className = DragDrop.portletSpacerName;					// if the drag ends and we're still outside all containers		// it's time to remove ourselves from the document or add 		// to the trash bin		if (this.isOutside) {			reelHome(portletCont.id, parseInt(portletCont.style.left), parseInt(portletCont.style.top), 15);			return;		}		var position = 0;		var positionFound = false;		var container = DragDrop.firstContainer;		var curContainer = null;		var items = null;		// Find the new position of the portlet		while (container != null) {			if (!positionFound) {				position = 0;				items = container.childNodes;				for (var i=0; i<items.length; i++) {					if (items[i].className == DragDrop.portletSpacerName) {						if (items[i].portletId == portletBound.portletId) {							positionFound = true;							curContainer = container;							break;						}						if (!items[i].isStatic)							position++;					}				}			}			container.className = "";			container = container.nextContainer;		}				reelHome(portletCont.id, parseInt(portletCont.style.left), parseInt(portletCont.style.top), 15);		movePortlet(DragDrop.plid, portletBound.portletId, curContainer.columnId, position);	},
meta: 10143	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10143/d52ea4e97e8b1bcf753a6b46e30a44fca8aa5363/dragdrop.js/clean/portal-web/docroot/html/js/dragdrop/dragdrop.js