Author: kien_nguyen
Date: 2011-10-24 07:17:48 -0400 (Mon, 24 Oct 2011)
New Revision: 7850
Modified:
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIDashboard.js
Log:
GTNPORTAL-2225 Height of UIAddGadgetPopup is not correct
Modified:
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIDashboard.js
===================================================================
---
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIDashboard.js 2011-10-24
11:15:34 UTC (rev 7849)
+++
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIDashboard.js 2011-10-24
11:17:48 UTC (rev 7850)
@@ -404,6 +404,13 @@
DOMUtil.findFirstChildByClass(category, "div",
"GadgetTab").className = "GadgetTab " + normalStyle;
categoryContent.style.display = "none";
}
+
+ var popupContent = DOMUtil.findAncestorByClass(clickElement,
"PopupContent");
+ if(eXo.core.Browser.getBrowserHeight() - 100 < categoriesContainer.offsetHeight) {
+ popupContent.style.height = (eXo.core.Browser.getBrowserHeight() - 100) +
"px";
+ } else {
+ popupContent.style.height = "auto";
+ }
};
/**
* Change disabled object to enable state
Show replies by date