diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/AbstractComponentConnector.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/client/src/com/vaadin/client/ui/AbstractComponentConnector.java b/client/src/com/vaadin/client/ui/AbstractComponentConnector.java index c6990d92f1..339bcc9a46 100644 --- a/client/src/com/vaadin/client/ui/AbstractComponentConnector.java +++ b/client/src/com/vaadin/client/ui/AbstractComponentConnector.java @@ -271,8 +271,14 @@ public abstract class AbstractComponentConnector extends AbstractConnector protected void updateWidgetStyleNames() { ComponentState state = getState(); - String primaryStyleName = state.primaryStyleName == null ? "" - : state.primaryStyleName; + String primaryStyleName = getWidget().getStylePrimaryName(); + if (state.primaryStyleName != null) { + /* + * We overwrite the widgets primary stylename if state defines a + * primary stylename + */ + getWidget().setStylePrimaryName(state.primaryStyleName); + } // should be in AbstractFieldConnector ? // add / remove read-only style name |