From: Leif Åstrand Date: Wed, 14 Mar 2012 12:26:31 +0000 (+0200) Subject: Prevent margin collapse to make a hr visible in the test X-Git-Tag: 7.0.0.alpha2~309^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7e38a68314257e8e26e6c54e5e860c8be6aea314;p=vaadin-framework.git Prevent margin collapse to make a hr visible in the test --- 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);