diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-03-13 14:45:21 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-03-13 14:45:21 +0000 |
commit | 1633b6888090ed2943ae76b5ddf658522c3780e8 (patch) | |
tree | 440ae17dbf295d5a866ae621f6f34e4a8fee9820 /src | |
parent | 972081f7833062edb3f07453cbd4b5c19bfeced6 (diff) | |
download | vaadin-framework-1633b6888090ed2943ae76b5ddf658522c3780e8.tar.gz vaadin-framework-1633b6888090ed2943ae76b5ddf658522c3780e8.zip |
auto closing popup now only when resolution is less than hour
svn changeset:4039/svn branch:trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/com/itmill/toolkit/terminal/gwt/client/ui/CalendarPanel.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/CalendarPanel.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/CalendarPanel.java index 205f4c1822..bd185e7192 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/CalendarPanel.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/CalendarPanel.java @@ -420,7 +420,8 @@ public class CalendarPanel extends FlexTable implements MouseListener, cal.datefield.getCurrentDate().getYear() + 1900,
cal.datefield.isImmediate());
- if (datefield instanceof ITextualDate) {
+ if (datefield instanceof ITextualDate
+ && resolution < IDateField.RESOLUTION_HOUR) {
((ToolkitOverlay) getParent()).hide();
} else {
updateCalendar();
|