Author: hoang_to
Date: 2009-11-22 22:12:32 -0500 (Sun, 22 Nov 2009)
New Revision: 752
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalComponentActionListener.java
Log:
GTNPORTAL-202: Update java code to fix UI bug with mixed layout
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalComponentActionListener.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalComponentActionListener.java 2009-11-23
01:08:00 UTC (rev 751)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalComponentActionListener.java 2009-11-23
03:12:32 UTC (rev 752)
@@ -196,10 +196,17 @@
removeComponent(topAncestorId, UI_CONTAINER_PREFIX, pcontext);
return;
}
+
+ /** If the uiParent is not the topAncestor and having no child, then it is
removed */
+ if(uiParent.getChildren().size() == 0)
+ {
+ /** Update server-side */
+ UIContainer itsParent = uiParent.getParent();
+ itsParent.removeChildById(uiParent.getId());
+ }
/**
- * If the topAncestor contains at least one child, then it is
- * updated via Ajax
+ * Update the topAncestor by Ajax
*/
if (!topAncestorId.startsWith(UI_CONTAINER_PREFIX))
{
Show replies by date