]> source.dussan.org Git - vaadin-framework.git/commitdiff
When repaintAll is requested, paint all the non-native windows, not just main.
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Fri, 2 Mar 2007 23:17:49 +0000 (23:17 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Fri, 2 Mar 2007 23:17:49 +0000 (23:17 +0000)
svn changeset:781/svn branch:trunk

src/com/itmill/toolkit/terminal/web/AjaxApplicationManager.java

index 2213c3891f007bd50e42b97eee548a36352eacac..eddb44758b7953ebc947d44476eed444d77ccb44 100644 (file)
@@ -193,7 +193,14 @@ public class AjaxApplicationManager implements Paintable.RepaintRequestListener,
                     Set paintables;
                     if (repaintAll) {
                         paintables = new LinkedHashSet();
-                        paintables.add(window);
+                               paintables.add(window);
+                        
+                        // Add all non-native windows
+                        for (Iterator i=window.getApplication().getWindows().iterator(); i.hasNext();) {
+                               Window w = (Window) i.next();
+                               if (!"native".equals(w.getStyle()) && w != window)
+                                       paintables.add(w);
+                        }
                     } else
                         paintables = getDirtyComponents();
                     if (paintables != null) {