From: Matti Tahvonen Date: Tue, 7 Aug 2007 11:10:54 +0000 (+0000) Subject: still some enhanhements to child rendering X-Git-Tag: 6.7.0.beta1~6137 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5d2c397f98ca8e636ff37ec2ab3d311bd77d362e;p=vaadin-framework.git still some enhanhements to child rendering svn changeset:1961/svn branch:trunk --- 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); }