rem: getConstraints: function() { if (this.constrainingContainer.nodeName.toLowerCase() == 'body') { var viewport = dojo.html.getViewport(); var width = viewport.width; var height = viewport.height; var x = 0; var y = 0; } else { var content = dojo.html.getContentBox(this.constrainingContainer); width = content.width; height = content.height; x = this.containingBlockPosition.x + dojo.html.getPixelValue(this.constrainingContainer, "padding-left", true) + dojo.html.getBorderExtent(this.constrainingContainer, "left"); y = this.containingBlockPosition.y + dojo.html.getPixelValue(this.constrainingContainer, "padding-top", true) + dojo.html.getBorderExtent(this.constrainingContainer, "top"); }  var mb = dojo.html.getMarginBox(this.domNode); return { minX: x, minY: y, maxX: x + width - mb.width, maxY: y + height - mb.height } }, 
add: getConstraints: function(){ if(this.constrainingContainer.nodeName.toLowerCase() == 'body'){ var viewport = dojo.html.getViewport(); var width = viewport.width; var height = viewport.height; var scroll = dojo.html.getScroll().offset; var x = scroll.x; var y = scroll.y; }else{ var content = dojo.html.getContentBox(this.constrainingContainer); width = content.width; height = content.height; x = this.containingBlockPosition.x + dojo.html.getPixelValue(this.constrainingContainer, "padding-left", true) + dojo.html.getBorderExtent(this.constrainingContainer, "left"); y = this.containingBlockPosition.y + dojo.html.getPixelValue(this.constrainingContainer, "padding-top", true) + dojo.html.getBorderExtent(this.constrainingContainer, "top"); }   var mb = dojo.html.getMarginBox(this.domNode); return { minX: x, minY: y, maxX: x + width - mb.width, maxY: y + height - mb.height } }, 
context: 	getConstraints: function() {		if (this.constrainingContainer.nodeName.toLowerCase() == 'body') {			var viewport = dojo.html.getViewport();			var width = viewport.width;			var height = viewport.height;			var x = 0;			var y = 0;		} else {			var content = dojo.html.getContentBox(this.constrainingContainer);			width = content.width;			height = content.height;			x =				this.containingBlockPosition.x +				dojo.html.getPixelValue(this.constrainingContainer, "padding-left", true) +				dojo.html.getBorderExtent(this.constrainingContainer, "left");			y =				this.containingBlockPosition.y +				dojo.html.getPixelValue(this.constrainingContainer, "padding-top", true) +				dojo.html.getBorderExtent(this.constrainingContainer, "top");		}				var mb = dojo.html.getMarginBox(this.domNode);		return {			minX: x,			minY: y,			maxX: x + width - mb.width,			maxY: y + height - mb.height		}	},
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/HtmlDragAndDrop.js/buggy/www/resources/dojo-ajax/src/dnd/HtmlDragAndDrop.js