Author: mwringe
Date: 2011-09-01 10:03:40 -0400 (Thu, 01 Sep 2011)
New Revision: 7275
Modified:
epp/portal/branches/EPP_5_2_Branch/web/eXoResources/src/main/webapp/javascript/eXo/portal/UIPortalNavigation.js
Log:
JBEPP-1053: merge in patch from GTNPORTAL-2034 (r7270) which fixes the menu rendering
issues.
Modified:
epp/portal/branches/EPP_5_2_Branch/web/eXoResources/src/main/webapp/javascript/eXo/portal/UIPortalNavigation.js
===================================================================
---
epp/portal/branches/EPP_5_2_Branch/web/eXoResources/src/main/webapp/javascript/eXo/portal/UIPortalNavigation.js 2011-09-01
13:59:00 UTC (rev 7274)
+++
epp/portal/branches/EPP_5_2_Branch/web/eXoResources/src/main/webapp/javascript/eXo/portal/UIPortalNavigation.js 2011-09-01
14:03:40 UTC (rev 7275)
@@ -263,9 +263,12 @@
if (eXo.portal.UIPortalNavigation.currentOpenedMenu)
eXo.portal.UIPortalNavigation.hideMenu();
eXo.portal.UIPortalNavigation.superClass.pushVisibleContainer(menuItemContainer.id);
- var offParent = item.offsetParent ;
- var y = item.offsetHeight + item.offsetTop;
- var x = item.offsetLeft + 2;
+ //Need this code to make menuItemContainer.offsetParent works correctly
+ menuItemContainer.style.display = "block";
+ menuItemContainer.style.position = "absolute";
+ var offParent = menuItemContainer.offsetParent ;
+ var y = item.offsetHeight + eXo.core.Browser.findPosYInContainer(item, offParent);
+ var x = eXo.core.Browser.findPosXInContainer(item, offParent) + 2;
if(eXo.core.I18n.isRT()) {
x = eXo.core.Browser.findPosX(offParent) + offParent.offsetWidth -
eXo.core.Browser.findPosX(item) - item.offsetWidth;
// if(eXo.core.Browser.isIE6()) x +=
parseInt(document.getElementById("UIWorkingWorkspace").style.marginRight) ;
Show replies by date