summaryrefslogtreecommitdiffstats
path: root/compatibility-client/src
diff options
context:
space:
mode:
authorcaalador <mikael.grankvist@gmail.com>2017-02-07 15:31:05 +0200
committerHenri Sara <henri.sara@gmail.com>2017-02-07 15:31:05 +0200
commit19fdb91d4b8c926431995e157bdf440436209c2d (patch)
tree10b30f3ae77d2b8cfcf051378fb391689266bb62 /compatibility-client/src
parent5061d53a55be72d5cb8c7394342491aec6f4a10e (diff)
downloadvaadin-framework-19fdb91d4b8c926431995e157bdf440436209c2d.tar.gz
vaadin-framework-19fdb91d4b8c926431995e157bdf440436209c2d.zip
Fix toggling of WeekNumbers for DateTimeField. (#8468)
Fixes #8405
Diffstat (limited to 'compatibility-client/src')
-rw-r--r--compatibility-client/src/main/java/com/vaadin/v7/client/ui/VCalendarPanel.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VCalendarPanel.java b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VCalendarPanel.java
index bd0cab400a..a27f2c80cd 100644
--- a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VCalendarPanel.java
+++ b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VCalendarPanel.java
@@ -533,6 +533,11 @@ public class VCalendarPanel extends FocusableFlexTable implements
public void setShowISOWeekNumbers(boolean showISOWeekNumbers) {
this.showISOWeekNumbers = showISOWeekNumbers;
+ if (initialRenderDone && getResolution()
+ .getCalendarField() >= Resolution.DAY.getCalendarField()) {
+ clearCalendarBody(false);
+ buildCalendarBody();
+ }
}
/**