- var offsets = this.getOffsets();\r
- var xy = (this.anchorToTarget && !this.trackMouse) ?\r
- this.el.getAlignToXY(this.anchorTarget, this.getAnchorAlign()) :\r
- this.targetXY;\r
-\r
- var dw = Ext.lib.Dom.getViewWidth()-5;\r
- var dh = Ext.lib.Dom.getViewHeight()-5;\r
- var scrollX = (document.documentElement.scrollLeft || document.body.scrollLeft || 0)+5;\r
- var scrollY = (document.documentElement.scrollTop || document.body.scrollTop || 0)+5;\r
-\r
- var axy = [xy[0] + offsets[0], xy[1] + offsets[1]];\r
- var sz = this.getSize();\r
+ var offsets = this.getOffsets(),\r
+ xy = (this.anchorToTarget && !this.trackMouse) ? this.el.getAlignToXY(this.anchorTarget, this.getAnchorAlign()) : this.targetXY,\r
+ dw = Ext.lib.Dom.getViewWidth() - 5,\r
+ dh = Ext.lib.Dom.getViewHeight() - 5,\r
+ de = document.documentElement,\r
+ bd = document.body,\r
+ scrollX = (de.scrollLeft || bd.scrollLeft || 0) + 5,\r
+ scrollY = (de.scrollTop || bd.scrollTop || 0) + 5,\r
+ axy = [xy[0] + offsets[0], xy[1] + offsets[1]]\r
+ sz = this.getSize();\r
+ \r