diff options
Diffstat (limited to 'uitest/src/com/vaadin/tests/layouts/GridLayoutInsidePanel2.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/layouts/GridLayoutInsidePanel2.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/layouts/GridLayoutInsidePanel2.java b/uitest/src/com/vaadin/tests/layouts/GridLayoutInsidePanel2.java new file mode 100644 index 0000000000..6273b92838 --- /dev/null +++ b/uitest/src/com/vaadin/tests/layouts/GridLayoutInsidePanel2.java @@ -0,0 +1,28 @@ +package com.vaadin.tests.layouts; + +import com.vaadin.Application; +import com.vaadin.ui.GridLayout; +import com.vaadin.ui.Label; +import com.vaadin.ui.Layout; +import com.vaadin.ui.UI.LegacyWindow; + +public class GridLayoutInsidePanel2 extends Application.LegacyApplication { + + private Layout layout; + + @Override + public void init() { + LegacyWindow w = new LegacyWindow("Main"); + setMainWindow(w); + layout = (Layout) w.getContent(); + GridLayout gl = new GridLayout(1, 1); + gl.setSizeUndefined(); + Label l = new Label("This should be visible"); + l.setWidth("100px"); + gl.addComponent(l); + + layout.setSizeUndefined(); + layout.addComponent(gl); + } + +} |