]> source.dussan.org Git - vaadin-framework.git/commitdiff
Avoid setting margin styles to spacing element (#8313)
authorLeif Åstrand <leif@vaadin.com>
Thu, 9 Feb 2012 14:24:38 +0000 (16:24 +0200)
committerLeif Åstrand <leif@vaadin.com>
Thu, 9 Feb 2012 14:24:38 +0000 (16:24 +0200)
src/com/vaadin/terminal/gwt/client/ui/VMeasuringOrderedLayout.java

index 088eaf46f666c8db21dad41f3646d46d2ac7996a..b656caf9dc3ec275c30eb843282b7707924f2622 100644 (file)
@@ -63,7 +63,7 @@ public class VMeasuringOrderedLayout extends ComplexPanel {
     }
 
     void updateSpacingStyleName(boolean spacingEnabled) {
-        String styleName = getStyleName();
+        String styleName = getStylePrimaryName();
         if (spacingEnabled) {
             spacingMeasureElement.addClassName(styleName + "-spacing-on");
             spacingMeasureElement.removeClassName(styleName + "-spacing-off");