From 07754fdb1a4b30df5bc4ebda067cf32aadaaeb2f Mon Sep 17 00:00:00 2001 From: Leif Åstrand Date: Wed, 20 Feb 2013 15:24:18 +0200 Subject: Don't update primary stylename if it's already up to date (#11088) Change-Id: I059d7ec83f8c4ae43d2ab6e2c80177675c6881d0 --- client/src/com/vaadin/client/ui/AbstractComponentConnector.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/com/vaadin/client/ui/AbstractComponentConnector.java b/client/src/com/vaadin/client/ui/AbstractComponentConnector.java index 51051644c0..694db6f02c 100644 --- a/client/src/com/vaadin/client/ui/AbstractComponentConnector.java +++ b/client/src/com/vaadin/client/ui/AbstractComponentConnector.java @@ -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. -- cgit v1.2.3