From 602c38e51946f327c49ff3abf57a56734f5430ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Mon, 26 Mar 2012 16:37:36 +0300 Subject: [PATCH] Make label width undefined so at least one child has defined width --- .../tests/layouts/layouttester/VerticalLayoutTests.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.39.5