summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-05-28 17:55:44 +0300
committerVaadin Code Review <review@vaadin.com>2013-05-28 14:59:27 +0000
commitb2137f5d4bd00e11142f31f542b0f8d6ea98f518 (patch)
treeae38ed0ad572faf9c9a3e2327259fb022c224ea5 /client
parent3b888fe28b22de289ac658e9d36073d751705c70 (diff)
downloadvaadin-framework-b2137f5d4bd00e11142f31f542b0f8d6ea98f518.tar.gz
vaadin-framework-b2137f5d4bd00e11142f31f542b0f8d6ea98f518.zip
Ensure calendar panel is updated when range changes (#11940)
Change-Id: Ic270e5c0aa1b28947b735fcb258bc9629d53cc21
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ui/VCalendarPanel.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/ui/VCalendarPanel.java b/client/src/com/vaadin/client/ui/VCalendarPanel.java
index 311932b819..1f40298760 100644
--- a/client/src/com/vaadin/client/ui/VCalendarPanel.java
+++ b/client/src/com/vaadin/client/ui/VCalendarPanel.java
@@ -2216,6 +2216,11 @@ public class VCalendarPanel extends FocusableFlexTable implements
*/
public void setRangeStart(Date rangeStart) {
this.rangeStart = rangeStart;
+ if (initialRenderDone) {
+ // Dynamic updates to the range needs to render the calendar to
+ // update the element stylenames
+ renderCalendar();
+ }
}
@@ -2228,6 +2233,10 @@ public class VCalendarPanel extends FocusableFlexTable implements
*/
public void setRangeEnd(Date rangeEnd) {
this.rangeEnd = rangeEnd;
-
+ if (initialRenderDone) {
+ // Dynamic updates to the range needs to render the calendar to
+ // update the element stylenames
+ renderCalendar();
+ }
}
}