diff options
author | Artur Signell <artur@vaadin.com> | 2013-05-28 17:55:44 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-05-28 14:59:27 +0000 |
commit | b2137f5d4bd00e11142f31f542b0f8d6ea98f518 (patch) | |
tree | ae38ed0ad572faf9c9a3e2327259fb022c224ea5 /client | |
parent | 3b888fe28b22de289ac658e9d36073d751705c70 (diff) | |
download | vaadin-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.java | 11 |
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(); + } } } |