]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix #8170: Window.attach() did not call attach() for subwindows
authorJohannes Dahlström <johannes.dahlstrom@vaadin.com>
Thu, 22 Dec 2011 12:52:13 +0000 (12:52 +0000)
committerJohannes Dahlström <johannes.dahlstrom@vaadin.com>
Thu, 22 Dec 2011 12:52:13 +0000 (12:52 +0000)
svn changeset:22471/svn branch:6.7

src/com/vaadin/ui/Window.java

index 5f6c29f182d68e6034a14e94bb6700a2b9ddf06a..661174ca8556f242dffbe1c62a5142ce75436751 100644 (file)
@@ -2380,4 +2380,15 @@ public class Window extends Panel implements URIHandler, ParameterHandler,
         }
     }
 
+    /**
+     * Notifies the child components and subwindows that the window is attached
+     * to the application.
+     */
+    @Override
+    public void attach() {
+        super.attach();
+        for (Window w : subwindows) {
+            w.attach();
+        }
+    }
 }