From 7e38a68314257e8e26e6c54e5e860c8be6aea314 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Wed, 14 Mar 2012 14:26:31 +0200 Subject: [PATCH] Prevent margin collapse to make a hr visible in the test --- .../tests/layouts/layouttester/VerticalLayoutTests.java | 5 ++++- 1 file changed, 4 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 dd40726ec2..252e8ba82c 100644 --- a/tests/testbench/com/vaadin/tests/layouts/layouttester/VerticalLayoutTests.java +++ b/tests/testbench/com/vaadin/tests/layouts/layouttester/VerticalLayoutTests.java @@ -454,7 +454,10 @@ public class VerticalLayoutTests extends AbstractLayoutTests { final VerticalLayout vlo2 = getTestLaytout(); vlo2.addComponent(c1); - vlo2.addComponent(new Label("
", ContentMode.XHTML)); + // Must add something around the hr to avoid the margins collapsing + vlo2.addComponent(new Label( + "

", + ContentMode.XHTML)); vlo2.addComponent(c2); vlo2.setExpandRatio(c1, 0.5f); vlo2.setExpandRatio(c2, 0.5f); -- 2.39.5