rem: dhtmlDebug("<br />e.clientX=" + e.clientX + ", window.pageXOffset=" + window.pageXOffset + ", window.innerWidth=" + window.innerWidth + ", window.pageYOffset=" + window.pageYOffset + ", theDiv.offsetWidth=" + theDiv.offsetWidth + ", theDiv.offsetHeight=" + theDiv.offsetHeight); 
add: dhtmlDebug("<br />e.clientX=" + e.clientX + ", dhtmlGetPageXOffset=" + dhtmlGetPageXOffset() + ", dhtmlGetInnerWidth=" + dhtmlGetInnerWidth() + ", dhtmlGetPageYOffset=" + dhtmlGetPageYOffset() + ", theDiv.offsetWidth=" + theDiv.offsetWidth + ", theDiv.offsetHeight=" + theDiv.offsetHeight); 
context: function dhtmlPopupShow(winName, e) {	var theDiv = dhtmlPopupGetDiv(winName);	dhtmlDebug("<br />e.clientX=" + e.clientX + ", window.pageXOffset=" + window.pageXOffset + ", window.innerWidth=" + window.innerWidth + ", window.pageYOffset=" + window.pageYOffset + ", theDiv.offsetWidth=" + theDiv.offsetWidth + ", theDiv.offsetHeight=" + theDiv.offsetHeight);	if (e.clientX > 0) {		var maxLeftPos = window.innerWidth - theDiv.offsetWidth;		var leftPos = e.clientX - 10;		if (leftPos > maxLeftPos) {			leftPos = maxLeftPos;		}		theDiv.style.left = (leftPos) + "px";		theDiv.style.top = (window.pageYOffset + e.clientY + 15) + "px";	} else {		// The keyboard was used instead of the mouse, so we		// don't have a good starting position.		// Just center the popup for now.		theDiv.style.left = (window.pageXOffset + window.innerWidth/2 - theDiv.offsetWidth/2) + "px";		theDiv.style.top = (window.pageYOffset + window.innerHeight/2 - theDiv.offsetHeight/2) + "px";	}	theDiv.style.visibility = "visible";}
meta: 3363	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3363/51c7c89b11be9b0c9bceef1421c2f37d214b9e3e/dhtmlPopup.js/buggy/tool/src/webapp/common/dhtmlpopup/dhtmlPopup.js