rem: var s = Ext.get(document).getScroll(); 
add: var s = Ext.getDoc().getScroll(); 
context:     constrainXY : function(){        if(this.constrain){            var vw = Ext.lib.Dom.getViewWidth(),                vh = Ext.lib.Dom.getViewHeight();            var s = Ext.get(document).getScroll();            var xy = this.getXY();            var x = xy[0], y = xy[1];               var w = this.dom.offsetWidth+this.shadowOffset, h = this.dom.offsetHeight+this.shadowOffset;                        var moved = false;                        if((x + w) > vw+s.left){                x = vw - w - this.shadowOffset;                moved = true;            }            if((y + h) > vh+s.top){                y = vh - h - this.shadowOffset;                moved = true;            }                        if(x < s.left){                x = s.left;                moved = true;            }            if(y < s.top){                y = s.top;                moved = true;            }            if(moved){                if(this.avoidY){                    var ay = this.avoidY;                    if(y <= ay && (y+h) >= ay){                        y = ay-h-5;                       }                }                xy = [x, y];                this.storeXY(xy);                supr.setXY.call(this, xy);                this.sync();            }        }    },
meta: 2891	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2891/d109eea1e59fbb030ac98e95f181f72da9611a48/ext-all-debug.js/buggy/gemma-web/src/main/webapp/scripts/ext/ext-all-debug.js