]> source.dussan.org Git - vaadin-framework.git/commitdiff
#8085 Recalculate DateField width when enabled state changes
authorArtur Signell <artur.signell@itmill.com>
Thu, 12 Jan 2012 10:48:04 +0000 (10:48 +0000)
committerArtur Signell <artur.signell@itmill.com>
Thu, 12 Jan 2012 10:48:04 +0000 (10:48 +0000)
svn changeset:22603/svn branch:6.7

WebContent/VAADIN/themes/reindeer-tests/styles.css
src/com/vaadin/terminal/gwt/client/ui/VPopupCalendar.java

index 243d1b87d4ac8d48101094715192df6848f503a9..5ce51c919eedda612b6e9bacf4d137febf1f2adf 100644 (file)
 .v-readonly.v-datefield-enabled-readonly-styled .v-datefield-button {
        display: none;
 }
-
-.popup-style .v-datefield-calendarpanel-header,
-.v-datefield-popup-popup-style .v-datefield-calendarpanel-time {
-       background: red;
-}
-.popup-style .v-datefield-calendarpanel-body {
-       background: yellow;
-}
index 549248aab38a4178443dff40b26a1ceb9e49b018..08e5328b4083eb73199c211516913ad7fb34e134 100644 (file)
@@ -225,10 +225,6 @@ public class VPopupCalendar extends VTextualDate implements Paintable, Field,
         }\r
 \r
         if (lastReadOnlyState != readonly || lastEnabledState != isEnabled()) {\r
-            // Enabled or readonly state changed. Differences in theming might\r
-            // affect the width (for instance if the popup button is hidden) so\r
-            // we have to recalculate the width (IF the width of the field is\r
-            // fixed)\r
             updateWidth();\r
         }\r
 \r