rem: if (newY < 0) {newY = 0}; if (newX < 0) {newX = 0}; if (newY > window.innerHeight - 10) { newY = window.innerHeight - 10;} if (newX > window.innerWidth - 100) { newX = window.innerWidth - 100;} 
add: if (newY < 0) { newY = 0 }; if (newX < 0) { newX = 0 }; if (newY > window.innerHeight - 10) { newY = window.innerHeight - 10; } if (newX > window.innerWidth - 100) { newX = window.innerWidth - 100; } 
context: function BX_doDrag(e) {    // Calculates the difference from the last stored position to    // the current position.    //    BX_popup = document.getElementById("BX_popup");    var difX=e.clientX-window.lastX;    var difY=e.clientY-window.lastY;    // Retrieves the X and Y position of editcanvas.    // Linux does behave strangely...    if (	navigator.platform.indexOf("Linux") >= 0)    {        var newX = parseInt(window.BX_popupLeft) +difX/2;        var newY = parseInt(window.BX_popupTop) +difY/2;    }    else    {        var newX = parseInt(window.BX_popupLeft) +difX;        var newY = parseInt(window.BX_popupTop) +difY;    }    // Sets the new position for the editcanvas div element.    // Note: the table was created inside editcanvas div element;    // this way, all editcanvas's child elements are affected by    // positioning.    //    if (newY < 0) {newY = 0};    if (newX < 0) {newX = 0};    if (newY > window.innerHeight - 10) { newY = window.innerHeight - 10;}    if (newX > window.innerWidth - 100) { newX = window.innerWidth - 100;}    BX_popup.style.left=newX +"px";    BX_popup.style.top=newY+"px";    // Stores the current mouse position as last position.    //    //	window.lastX=e.clientX;    //	window.lastY=e.clientY;}
meta: 791	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js