]> source.dussan.org Git - vaadin-framework.git/commitdiff
Apply all settings when changing direction
authorLeif Åstrand <leif@vaadin.com>
Fri, 27 Jan 2012 08:45:00 +0000 (08:45 +0000)
committerLeif Åstrand <leif@vaadin.com>
Fri, 27 Jan 2012 08:45:00 +0000 (08:45 +0000)
svn changeset:22784/svn branch:6.7

tests/testbench/com/vaadin/tests/components/orderedlayout/OrderedLayoutCases.java

index ff3c304600948c43ac66c9c7a063500f5bec5af1..d50952f07049702564e91e206bacde2c98f881d0 100644 (file)
@@ -176,7 +176,11 @@ public class OrderedLayoutCases extends TestBase {
                         newLayout.setWidth(currentLayout.getWidth(),
                                 currentLayout.getWidthUnits());
 
+                        newLayout.setMargin(currentLayout.getMargin());
+                        newLayout.setSpacing(currentLayout.isSpacing());
+
                         getLayout().replaceComponent(currentLayout, newLayout);
+                        getLayout().setExpandRatio(newLayout, 1);
                         currentLayout = newLayout;
                     }
                 }, "Horizontal", "Vertical"));