Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317662 - DatePickerComposite does not close after selection of date
Summary: DatePickerComposite does not close after selection of date
Status: RESOLVED FIXED
Alias: None
Product: Riena
Classification: RT
Component: UI (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0.0.M2   Edit
Assignee: Christian Campo CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-23 04:15 EDT by Artur Schmidt CLA
Modified: 2010-10-29 06:13 EDT (History)
1 user (show)

See Also:


Attachments
Screencast (SWF) of the bug (132.97 KB, application/octet-stream)
2010-06-24 03:22 EDT, Steffen Kriese CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Artur Schmidt CLA 2010-06-23 04:15:59 EDT
DatePickerComposite does not close on the first click on a date if the previous/next month buttons were used before the click. Sometimes it takes 2, 3 or 4 clicks to finally close it. The number of necessary clicks seems also to depend on how many times the month buttons were clicked.
Comment 1 Elias Volanakis CLA 2010-06-24 02:38:00 EDT
Could you record a short flash (.swf) video of this and attach it here? I recommend using the free Jing software for that (http://www.jingproject.com/)

My gut feeling is that the bug could be because of some workaround code I've added for Vista. In Vista the native date picker has the ability to zoom in / out if clicked at certain places. So I've added some code to not hide the picker if clicked there....

Since I don't have any XP machines, the video would help...
Comment 2 Steffen Kriese CLA 2010-06-24 03:22:17 EDT
Created attachment 172573 [details]
Screencast (SWF) of the bug
Comment 3 Elias Volanakis CLA 2010-06-24 15:47:51 EDT
Yep, the widget is different on Vista. I will add a workaround for XP.

@Steffen/Artur: please run this Snippet and paste the output here:

public class Version {
	public static void main(final String[] args) {
		System.out.println(String.format("os.version: '%s'", System.getProperty("os.version")));
		System.out.println(String.format("os.name: '%s'", System.getProperty("os.name")));
	}
}
Comment 4 Artur Schmidt CLA 2010-06-25 03:09:58 EDT
os.version: '5.1'
os.name: 'Windows XP'
Comment 5 Elias Volanakis CLA 2010-06-25 14:19:27 EDT
I've fixed this for Windows by adding different strategies for XP or earlies vs Vista or later. It's likely not 100% pixel perfect but should work reasonably well.

@Christian / MacUsers: If I had a screenshot of the DatePicker on Mac, I could adjust the calculations for that as well. Could you send me one?   (You can use SnippetDateTextRidget003. The lower text field opens a DatePicker)
Comment 6 Elias Volanakis CLA 2010-06-28 19:08:17 EDT
@Christian: please try on the mac and close if it works...

(should be ok on windows)
Comment 7 Elias Volanakis CLA 2010-08-04 20:13:47 EDT
Resolved