From: Leif Åstrand Date: Mon, 26 Mar 2012 13:37:36 +0000 (+0300) Subject: Make label width undefined so at least one child has defined width X-Git-Tag: 7.0.0.alpha2~200 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=602c38e51946f327c49ff3abf57a56734f5430ce;p=vaadin-framework.git Make label width undefined so at least one child has defined width --- diff --git a/tests/testbench/com/vaadin/tests/layouts/layouttester/VerticalLayoutTests.java b/tests/testbench/com/vaadin/tests/layouts/layouttester/VerticalLayoutTests.java index fee1807c09..a542a8f10c 100644 --- a/tests/testbench/com/vaadin/tests/layouts/layouttester/VerticalLayoutTests.java +++ b/tests/testbench/com/vaadin/tests/layouts/layouttester/VerticalLayoutTests.java @@ -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); }