rem: var oldLeft = left; 
add: var oldLeft = this.getLeft(); 
context: qx.Proto._afterAppear = function() {  qx.ui.layout.CanvasLayout.prototype._afterAppear.call(this);  if (this.getRestrictToPageOnOpen()) {    var doc = qx.ui.core.ClientDocument.getInstance();    var docWidth = doc.getClientWidth();    var docHeight = doc.getClientHeight();    var restrictToPageLeft   = parseInt(qx.Settings.getValueOfClass("qx.ui.popup.Popup", "restrictToPageLeft"));    var restrictToPageRight  = parseInt(qx.Settings.getValueOfClass("qx.ui.popup.Popup", "restrictToPageRight"));    var restrictToPageTop    = parseInt(qx.Settings.getValueOfClass("qx.ui.popup.Popup", "restrictToPageTop"));    var restrictToPageBottom = parseInt(qx.Settings.getValueOfClass("qx.ui.popup.Popup", "restrictToPageBottom"));    var left   = (this._wantedLeft == null) ? this.getLeft() : this._wantedLeft;    var top    = this.getTop();    var width  = this.getBoxWidth();    var height = this.getBoxHeight();    var oldLeft = left;    var oldTop = top;    // NOTE: We check right and bottom first, because top and left should have    //       priority, when both sides are violated.    if (left + width > docWidth - restrictToPageRight) {      left = docWidth - restrictToPageRight - width;    }    if (top + height > docHeight - restrictToPageBottom) {      top = docHeight - restrictToPageBottom - height;    }    if (left < restrictToPageLeft) {      left = restrictToPageLeft;    }    if (top < restrictToPageTop) {      top = restrictToPageTop;    }    if (left != oldLeft || top != oldTop) {      var self = this;      window.setTimeout(function() {        self.setLeft(left);        self.setTop(top);        qx.ui.core.Widget.flushGlobalQueues();      }, 0);    }  }};
meta: 1005	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1005/3f136ea673d43f30d30c15d044ddea082523520c/Popup.js/clean/qooxdoo/frontend/framework/source/class/qx/ui/popup/Popup.js