context: YAHOO.widget.Overlay.prototype.enforceConstraints = function(type, args, obj) {	var pos = args[0];	var x = pos[0];	var y = pos[1];	var offsetHeight = this.element.offsetHeight;	var offsetWidth = this.element.offsetWidth;	var viewPortWidth = YAHOO.util.Dom.getViewportWidth();	var viewPortHeight = YAHOO.util.Dom.getViewportHeight();	var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;	var scrollY = document.documentElement.scrollTop || document.body.scrollTop;	var topConstraint = scrollY + 10;	var leftConstraint = scrollX + 10;	var bottomConstraint = scrollY + viewPortHeight - offsetHeight - 10;	var rightConstraint = scrollX + viewPortWidth - offsetWidth - 10;		if (x < leftConstraint) {		x = leftConstraint;	} else if (x > rightConstraint) {		x = rightConstraint;	}	if (y < topConstraint) {		y = topConstraint;	} else if (y > bottomConstraint) {		y = bottomConstraint;	}	this.cfg.setProperty("x", x, true);	this.cfg.setProperty("y", y, true);	this.cfg.setProperty("xy", [x,y], true);};
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/container_core.js/buggy/www/resources/yui/container/container_core.js