Author: trong.tran
Date: 2010-08-27 02:38:36 -0400 (Fri, 27 Aug 2010)
New Revision: 3950
Modified:
portal/branches/branched-r3845/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletActionListener.java
Log:
GTNPORTAL-1446 Setting of portlet window state does not work
Modified:
portal/branches/branched-r3845/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletActionListener.java
===================================================================
---
portal/branches/branched-r3845/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletActionListener.java 2010-08-27
04:50:15 UTC (rev 3949)
+++
portal/branches/branched-r3845/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletActionListener.java 2010-08-27
06:38:36 UTC (rev 3950)
@@ -277,7 +277,7 @@
if (state != null)
{
UIPage uiPage = uiPortlet.getAncestorOfType(UIPage.class);
- if (state == WindowState.MAXIMIZED)
+ if (WindowState.MAXIMIZED.equals(state))
{
uiPortlet.setCurrentWindowState(WindowState.MAXIMIZED);
if (uiPage != null)
@@ -285,7 +285,7 @@
uiPage.setMaximizedUIPortlet(uiPortlet);
}
}
- else if (state == WindowState.MINIMIZED)
+ else if (WindowState.MINIMIZED.equals(state))
{
uiPortlet.setCurrentWindowState(WindowState.MINIMIZED);
if (uiPage != null)
Show replies by date