Author: kien_nguyen
Date: 2011-07-12 05:49:09 -0400 (Tue, 12 Jul 2011)
New Revision: 6862
Modified:
portal/trunk/portlet/dashboard/src/main/webapp/groovy/gadget/webui/component/UIGadgetViewMode.gtmpl
Log:
Remove fixed height of gadget portlet, it should be dynamic height
Modified:
portal/trunk/portlet/dashboard/src/main/webapp/groovy/gadget/webui/component/UIGadgetViewMode.gtmpl
===================================================================
---
portal/trunk/portlet/dashboard/src/main/webapp/groovy/gadget/webui/component/UIGadgetViewMode.gtmpl 2011-07-12
08:37:28 UTC (rev 6861)
+++
portal/trunk/portlet/dashboard/src/main/webapp/groovy/gadget/webui/component/UIGadgetViewMode.gtmpl 2011-07-12
09:49:09 UTC (rev 6862)
@@ -9,7 +9,6 @@
def windowId = rcontext.getWindowId();
def id = uicomponent.getId() + "-" + windowId ;
def url = uicomponent.getParent().getUrl();
- def height = "auto" ;
if(url != null) {
def metadata = uicomponent.getParent().getMetadata(url);
@@ -17,11 +16,7 @@
JavascriptManager jsmanager = rcontext.getJavascriptManager();
jsmanager.importJavascript("eXo.gadget.UIGadget") ;
jsmanager.addCustomizedOnLoadScript("eXo.gadget.UIGadget.createGadget('$url','$id',
$metadata, $userPref, 'canvas', '$hostName');") ;
- java.util.Map<String, String> metadataMap = GadgetUtil.getMapMetadata(url) ;
-
- if(metadataMap.containsKey("height") &&
Integer.parseInt(metadataMap.get("height")) > 0)
- height = (Integer.parseInt(metadataMap.get("height")) + 10) +
"px" ;
}
%>
-<div class="UIGadgetViewMode" id="$id" style="height:
<%=height%>;"></div>
+<div class="UIGadgetViewMode" id="$id" style="height:
auto;"></div>
Show replies by date