Author: haint
Date: 2011-10-27 02:56:09 -0400 (Thu, 27 Oct 2011)
New Revision: 7896
Modified:
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIRightClickPopupMenu.js
Log:
GTNPORTAL-2238 Right click menu is lost some options
Modified:
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIRightClickPopupMenu.js
===================================================================
---
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIRightClickPopupMenu.js 2011-10-26
15:48:44 UTC (rev 7895)
+++
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIRightClickPopupMenu.js 2011-10-27
06:56:09 UTC (rev 7896)
@@ -181,10 +181,13 @@
case 4:
break;
default:
- if((eXo.core.Mouse.mouseyInClient + ctxMenuContainer.offsetHeight) >
eXo.core.Browser.getBrowserHeight()) {
- intTop -= ctxMenuContainer.offsetHeight ;
- }
- break;
+ // if it isn't fit to be showed down BUT is fit to to be showed up
+ if((eXo.core.Mouse.mouseyInClient + ctxMenuContainer.offsetHeight) >
eXo.core.Browser.getBrowserHeight()
+ && (intTop > ctxMenuContainer.offsetHeight))
+ {
+ intTop -= ctxMenuContainer.offsetHeight ;
+ }
+ break;
}
if(eXo.core.I18n.isLT()) {
Show replies by date