summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-03-26 16:37:36 +0300
committerLeif Åstrand <leif@vaadin.com>2012-03-27 10:49:52 +0300
commit602c38e51946f327c49ff3abf57a56734f5430ce (patch)
treefb05fd0564a37f5a0c0dea0bd76472bea9f8b59f /tests
parentcf025b388dc07f50e8743fd6127cf2a9c5a1c628 (diff)
downloadvaadin-framework-602c38e51946f327c49ff3abf57a56734f5430ce.tar.gz
vaadin-framework-602c38e51946f327c49ff3abf57a56734f5430ce.zip
Make label width undefined so at least one child has defined width
Diffstat (limited to 'tests')
-rw-r--r--tests/testbench/com/vaadin/tests/layouts/layouttester/VerticalLayoutTests.java4
1 files changed, 3 insertions, 1 deletions
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);
}