summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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);
}