From 5d2c397f98ca8e636ff37ec2ab3d311bd77d362e Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Tue, 7 Aug 2007 11:10:54 +0000 Subject: [PATCH] still some enhanhements to child rendering svn changeset:1961/svn branch:trunk --- .../toolkit/terminal/gwt/client/ui/IVerticalLayout.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IVerticalLayout.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IVerticalLayout.java index ed8595be4d..b22e94cf21 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IVerticalLayout.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IVerticalLayout.java @@ -64,9 +64,7 @@ public class IVerticalLayout extends VerticalPanel implements Paintable, Layout } if(child == oldChild) { // child already attached and updated - if(oldIt.hasNext()) { - oldChild = (Widget) oldIt.next(); - } + oldChild = null; continue; } if(hasChildComponent(child)) { @@ -76,7 +74,8 @@ public class IVerticalLayout extends VerticalPanel implements Paintable, Layout } // remove possibly remaining old Paintable object which were not updated while(oldIt.hasNext()) { - Paintable p = (Paintable) oldIt.next(); + oldChild = (Widget) oldIt.next(); + Paintable p = (Paintable) oldChild; if(!uidlWidgets.contains(p)) removePaintable(p); } -- 2.39.5