rem:  this.contextMenu.style.top = (y + window.scrollY + 3) + "px"; 
add: this.contextMenu.style.top = (y + manager.display.documentElement.scrollTop + 3) + "px";  
context: function ContextMenu_render(contextMenuItemArray,x,y,owner) {//    manager.tools.showObject(this.contextMenu);        //    	alert("top = " + this.contextMenu.className);    this.owner = owner;    var html='<table border="0">';    for (var i=0;i<contextMenuItemArray.length;i++) {                var name = "contextMenuItem" + i + new Date().getTime();        html+='<tr>';        html+='    <td>'                if (contextMenuItemArray[i].link == "") {            html+=contextMenuItemArray[i].name;        }else {            html+='<a href="' + contextMenuItemArray[i].link +  '"><div id="' + name + '" class="contextMenuTab">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' + contextMenuItemArray[i].name + '</div></a>';        }                html+='</td>';        html+='</tr>';            this.nameArray[this.nameArray.length] = name;              }    html+='</table>';    this.contextMenu.innerHTML = html;       for (var k=0;k<this.nameArray.length;k++) {                if (document.getElementById(this.nameArray[k])) {            document.getElementById(this.nameArray[k]).onmouseover=new Function("document.getElementById('" + this.nameArray[k] + "').className='contextMenuTabOver'");            document.getElementById(this.nameArray[k]).onmouseout=new Function("document.getElementById('" + this.nameArray[k] + "').className='contextMenuTab'");        }    }    if (y > parseInt(this.contextMenu.offsetHeight)) {//        this.contextMenu.style.top = (y + document.body.scrollTop - this.contextMenu.offsetHeight -1) + "px";        this.contextMenu.style.top = (y + window.scrollY - this.contextMenu.offsetHeight -1) + "px";    }else {  //      this.contextMenu.style.top = (y + document.body.scrollTop + 3) + "px";        this.contextMenu.style.top = (y + window.scrollY + 3) + "px";    }    //this.contextMenu.style.left= (x + document.body.scrollLeft) + "px";    this.contextMenu.style.left= (x + window.scrollX) + "px";    manager.display.bringToFront(this.contextMenu);    //alert(this.contextMenu.style.top);    manager.tools.showObject(this.contextMenu);        }
meta: 5314	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5314/349703173ecca3dde6079fc87ec12d2c96c28ac1/ContextMenu.js/buggy/www/extras/assetManager/ContextMenu.js