Author: kien_nguyen
Date: 2010-04-13 04:01:36 -0400 (Tue, 13 Apr 2010)
New Revision: 2600
Modified:
portal/trunk/component/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UIDashboard.java
Log:
GTNPORTAL-1028 maximizing a minimized gadget doesn't expand the gadget
Modified:
portal/trunk/component/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UIDashboard.java
===================================================================
---
portal/trunk/component/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UIDashboard.java 2010-04-13
07:11:23 UTC (rev 2599)
+++
portal/trunk/component/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UIDashboard.java 2010-04-13
08:01:36 UTC (rev 2600)
@@ -20,6 +20,8 @@
package org.exoplatform.dashboard.webui.component;
import org.exoplatform.portal.webui.application.UIGadget;
+import org.exoplatform.portal.webui.page.UIPage;
+import org.exoplatform.portal.webui.page.UIPageBody;
import org.exoplatform.portal.webui.util.Util;
import org.exoplatform.portal.webui.workspace.UIPortalApplication;
import org.exoplatform.web.application.ApplicationMessage;
@@ -33,6 +35,8 @@
import org.exoplatform.webui.event.Event;
import org.exoplatform.webui.event.EventListener;
+import javax.portlet.WindowState;
+
@ComponentConfigs({@ComponentConfig(template =
"classpath:groovy/dashboard/webui/component/UIDashboard.gtmpl", events = {
@EventConfig(listeners = UIDashboardContainer.MoveGadgetActionListener.class),
@EventConfig(listeners = UIDashboardContainer.AddNewGadgetActionListener.class),
@@ -174,6 +178,12 @@
context.addUIComponentToUpdateByAjax(uiDashboard);
return;
}
+
+ //TODO nguyenanhkien2a(a)gmail.com
+ //We need to expand unminimized state of uiGadget to view all body of gadget,
not just a title with no content
+ uiGadget.getProperties().setProperty("minimized", "false");
+ uiDashboardCont.save();
+
if (maximize.equals("maximize"))
{
uiGadget.setView(UIGadget.CANVAS_VIEW);
Show replies by date