Author: phuong_vu
Date: 2010-12-02 00:06:11 -0500 (Thu, 02 Dec 2010)
New Revision: 5435
Modified:
exo/portal/branches/3.1.x/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIRightClickPopupMenu.js
Log:
EXOGTN-200 Right click menu popup is not behaving correctly in IE8.
Modified:
exo/portal/branches/3.1.x/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIRightClickPopupMenu.js
===================================================================
---
exo/portal/branches/3.1.x/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIRightClickPopupMenu.js 2010-12-02
04:36:55 UTC (rev 5434)
+++
exo/portal/branches/3.1.x/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIRightClickPopupMenu.js 2010-12-02
05:06:11 UTC (rev 5435)
@@ -167,7 +167,8 @@
ctxMenuContainer.style.width = "auto" ;
ctxMenuContainer.style.width = ctxMenuContainer.offsetWidth + 2 + "px" ;
//end fix width
- contextMenu.style.left = intLeft + "px";
+ //need to add 1 more pixel because IE8 will dispatch onmouseout event to
contextMenu.parent
+ contextMenu.style.left = (intLeft + 1) + "px";
} else {
//move context menu to center of screen to fix width
contextMenu.style.right = eXo.core.Browser.getBrowserWidth() * 0.5 + "px" ;
@@ -177,6 +178,10 @@
contextMenu.style.right = intLeft + "px" ;
}
ctxMenuContainer.style.width = ctxMenuContainer.offsetWidth + "px" ;
+ //need to add 1 more pixel because IE8 will dispatch onmouseout event to
contextMenu.parent
+ if((eXo.core.Mouse.mouseyInClient + ctxMenuContainer.offsetHeight) <=
eXo.core.Browser.getBrowserHeight()) {
+ intTop += 1
+ }
contextMenu.style.top = intTop + "px";
};