From 70d24586893359e35b0fc532916acb95653890a7 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 29 Jun 2012 10:35:00 +0300 Subject: [PATCH] Add v-datefield-day instead of prefixed for compatibility (#8664) --- .../ui/datefield/AbstractDateFieldConnector.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/client/ui/datefield/AbstractDateFieldConnector.java b/src/com/vaadin/terminal/gwt/client/ui/datefield/AbstractDateFieldConnector.java index 72555214fa..f9d02d403b 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/datefield/AbstractDateFieldConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/datefield/AbstractDateFieldConnector.java @@ -64,15 +64,21 @@ public class AbstractDateFieldConnector extends AbstractFieldConnector } // Remove old stylename that indicates current resolution - setWidgetStyleNameWithPrefix(VDateField.CLASSNAME, - VDateField.resolutionToString(getWidget().currentResolution), + setWidgetStyleName( + VDateField.CLASSNAME + + "-" + + VDateField + .resolutionToString(getWidget().currentResolution), false); getWidget().currentResolution = newResolution; // Add stylename that indicates current resolution - setWidgetStyleNameWithPrefix(VDateField.CLASSNAME, - VDateField.resolutionToString(getWidget().currentResolution), + setWidgetStyleName( + VDateField.CLASSNAME + + "-" + + VDateField + .resolutionToString(getWidget().currentResolution), true); final int year = uidl.getIntVariable("year"); -- 2.39.5