]> source.dussan.org Git - vaadin-framework.git/commitdiff
Make label width undefined so at least one child has defined width
authorLeif Åstrand <leif@vaadin.com>
Mon, 26 Mar 2012 13:37:36 +0000 (16:37 +0300)
committerLeif Åstrand <leif@vaadin.com>
Tue, 27 Mar 2012 07:49:52 +0000 (10:49 +0300)
tests/testbench/com/vaadin/tests/layouts/layouttester/VerticalLayoutTests.java

index fee1807c099849cfc98525d04ece5a6e6f51091f..a542a8f10cf6660fdac22070d79ae6e62cfa913b 100644 (file)
@@ -291,7 +291,9 @@ public class VerticalLayoutTests extends AbstractLayoutTests {
 
             public void buttonClick(ClickEvent event) {
                 vlo2.setSizeUndefined();
-                vlo2.addComponent(new Label("--- NEW LABEL ---"));
+                Label newLabel = new Label("--- NEW LABEL ---");
+                newLabel.setSizeUndefined();
+                vlo2.addComponent(newLabel);
                 button2.setEnabled(false);
                 button3.setEnabled(true);
             }