context: YAHOO.widget.Panel.prototype.registerDragDrop = function() {	if (this.header) {		this.dd = new YAHOO.util.DD(this.element.id, this.id);		if (! this.header.id) {			this.header.id = this.id + "_h";		}				var me = this;		this.dd.startDrag = function() {			if (me.browser == "ie") {				YAHOO.util.Dom.addClass(me.element,"drag");			}			if (me.cfg.getProperty("constraintoviewport")) {				var offsetHeight = me.element.offsetHeight;				var offsetWidth = me.element.offsetWidth;				var viewPortWidth = YAHOO.util.Dom.getViewportWidth();				var viewPortHeight = YAHOO.util.Dom.getViewportHeight();				var scrollX = window.scrollX || document.documentElement.scrollLeft;				var scrollY = window.scrollY || document.documentElement.scrollTop;				var topConstraint = scrollY + 10;				var leftConstraint = scrollX + 10;				var bottomConstraint = scrollY + viewPortHeight - offsetHeight - 10;				var rightConstraint = scrollX + viewPortWidth - offsetWidth - 10;				this.minX = leftConstraint;				this.maxX = rightConstraint;				this.constrainX = true;				this.minY = topConstraint;				this.maxY = bottomConstraint;				this.constrainY = true;			} else {				this.constrainX = false;				this.constrainY = false;			}			me.dragEvent.fire("startDrag", arguments);		};				this.dd.onDrag = function() {			me.syncPosition();			me.cfg.refireEvent("iframe");			if (this.platform == "mac" && this.browser == "gecko") {				this.showMacGeckoScrollbars();			}			me.dragEvent.fire("onDrag", arguments);		};		this.dd.endDrag = function() {			if (me.browser == "ie") {				YAHOO.util.Dom.removeClass(me.element,"drag");			}			me.dragEvent.fire("endDrag", arguments);		};		this.dd.setHandleElId(this.header.id);		this.dd.addInvalidHandleType("INPUT");		this.dd.addInvalidHandleType("SELECT");		this.dd.addInvalidHandleType("TEXTAREA");	}};
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/container-debug.js/clean/www/resources/yui/container/container-debug.js