]> source.dussan.org Git - vaadin-framework.git/commitdiff
Prevent another case of margin collapse
authorLeif Åstrand <leif@vaadin.com>
Thu, 15 Mar 2012 14:59:53 +0000 (16:59 +0200)
committerLeif Åstrand <leif@vaadin.com>
Thu, 15 Mar 2012 15:00:07 +0000 (17:00 +0200)
tests/testbench/com/vaadin/tests/layouts/layouttester/VerticalLayoutTests.java

index 9fe6367d604f903b06c9d9f1cbd66be01c887d4b..fee1807c099849cfc98525d04ece5a6e6f51091f 100644 (file)
@@ -269,7 +269,9 @@ public class VerticalLayoutTests extends AbstractLayoutTests {
         button4.setEnabled(false);
 
         vlo2.addComponent(c1);
-        vlo2.addComponent(new Label("<hr />", ContentMode.XHTML));
+        vlo2.addComponent(new Label(
+                "<div style='height: 1px'></div><hr /><div style='height: 1px'></div>",
+                ContentMode.XHTML));
         vlo2.addComponent(c2);
         vlo2.setExpandRatio(c1, 0.5f);
         vlo2.setExpandRatio(c2, 0.5f);