aboutsummaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorJohannes Dahlström <johannes.dahlstrom@vaadin.com>2012-03-14 12:01:24 +0000
committerJohannes Dahlström <johannes.dahlstrom@vaadin.com>2012-03-14 12:01:24 +0000
commitebdb5242b5f1a695aa4aea969ff7b64d8282b51f (patch)
tree03a38d607013220ca08748d99c7ad2ed23de9b38 /src/com
parent0681a2f396e69cd60238d0e77a2d857af5865252 (diff)
downloadvaadin-framework-ebdb5242b5f1a695aa4aea969ff7b64d8282b51f.tar.gz
vaadin-framework-ebdb5242b5f1a695aa4aea969ff7b64d8282b51f.zip
[Merge from 6.7] #8391 PopupDateField does not update the HH-MM-SS dropdown
svn changeset:23236/svn branch:6.8
Diffstat (limited to 'src/com')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VCalendarPanel.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VCalendarPanel.java b/src/com/vaadin/terminal/gwt/client/ui/VCalendarPanel.java
index 867e49c181..845ac837f6 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VCalendarPanel.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VCalendarPanel.java
@@ -1195,14 +1195,19 @@ public class VCalendarPanel extends FocusableFlexTable implements
displayedMonth = new Date(value.getYear(), value.getMonth(), 1);
}
- // Re-render calendar if month or year of focused date has changed
- if (oldDisplayedMonth == null || value == null
+ // Re-render calendar if the displayed month is changed,
+ // or if a time selector is needed but does not exist.
+ if ((isTimeSelectorNeeded() && time == null)
+ || oldDisplayedMonth == null || value == null
|| oldDisplayedMonth.getYear() != value.getYear()
|| oldDisplayedMonth.getMonth() != value.getMonth()) {
renderCalendar();
} else {
focusDay(focusedDate);
selectFocused();
+ if (isTimeSelectorNeeded()) {
+ time.updateTimes();
+ }
}
if (!hasFocus) {