Community
Participate
Working Groups
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.
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...
Created attachment 172573 [details] Screencast (SWF) of the bug
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"))); } }
os.version: '5.1' os.name: 'Windows XP'
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)
@Christian: please try on the mac and close if it works... (should be ok on windows)
Resolved