]> source.dussan.org Git - vaadin-framework.git/commitdiff
Workaround for the window-centering bug #2702
authorMarc Englund <marc.englund@itmill.com>
Fri, 27 Feb 2009 12:52:23 +0000 (12:52 +0000)
committerMarc Englund <marc.englund@itmill.com>
Fri, 27 Feb 2009 12:52:23 +0000 (12:52 +0000)
svn changeset:6982/svn branch:trunk

src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowPositionedExample.java

index 9d6e6fa1329088c0c2d73ca96acf28d2722ff4ad..4a9e02d7b52c8544296837a8a2e6c12fbb134270 100644 (file)
@@ -15,6 +15,9 @@ public class SubwindowPositionedExample extends VerticalLayout {
 \r
         // Create the window\r
         subwindow = new Window("A positioned subwindow");\r
+        // let's give it a size (optional)\r
+        subwindow.setWidth("300px");\r
+        subwindow.setHeight("200px");\r
 \r
         // Configure the windws layout; by default a VerticalLayout\r
         VerticalLayout layout = (VerticalLayout) subwindow.getLayout();\r