]> source.dussan.org Git - vaadin-framework.git/commitdiff
Don't update primary stylename if it's already up to date (#11088)
authorLeif Åstrand <leif@vaadin.com>
Wed, 20 Feb 2013 13:24:18 +0000 (15:24 +0200)
committerVaadin Code Review <review@vaadin.com>
Thu, 21 Feb 2013 07:58:52 +0000 (07:58 +0000)
Change-Id: I059d7ec83f8c4ae43d2ab6e2c80177675c6881d0

client/src/com/vaadin/client/ui/AbstractComponentConnector.java

index 51051644c02bddcc7bdd4cdc1f2541a8b0d3e4cf..694db6f02c19a3413c69c5dbac2f297a1fbe0cda 100644 (file)
@@ -284,7 +284,8 @@ public abstract class AbstractComponentConnector extends AbstractConnector
         AbstractComponentState state = getState();
 
         String primaryStyleName = getWidget().getStylePrimaryName();
-        if (state.primaryStyleName != null) {
+        if (state.primaryStyleName != null
+                && !state.primaryStyleName.equals(primaryStyleName)) {
             /*
              * We overwrite the widgets primary stylename if state defines a
              * primary stylename.