]> source.dussan.org Git - vaadin-framework.git/commitdiff
still some enhanhements to child rendering
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 7 Aug 2007 11:10:54 +0000 (11:10 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 7 Aug 2007 11:10:54 +0000 (11:10 +0000)
svn changeset:1961/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/IVerticalLayout.java

index ed8595be4d5d876f58e13b89cf9fe425f201ca0f..b22e94cf21af20067f8cbc4c86559d763bbc2c3b 100644 (file)
@@ -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);
                }