Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350190

Summary: CalendarCombo Buttons overlap dates on Windows 7
Product: z_Archived Reporter: Dan Healy <dan.healy>
Component: NebulaAssignee: Emil Crumhorn <emil.crumhorn>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Image of CalendarCombo in Windows 7 theme and Windows Classic none

Description Dan Healy CLA 2011-06-23 16:49:52 EDT
Build Identifier: Build id: I20100608-0911

On Windows 7, with the Calendar Combo control, the buttons "Today" and "None" overlap the dates on the calender.  I will attach an image.  It looks like the font size chosen is a bit too large.  

Reproducible: Always

Steps to Reproduce:
1.Display a CalendarCombo in any Windows 7 there except Windows Classic
Comment 1 Dan Healy CLA 2011-06-23 16:55:54 EDT
Created attachment 198500 [details]
Image of CalendarCombo in Windows 7 theme and Windows Classic
Comment 2 Emil Crumhorn CLA 2011-09-24 12:03:11 EDT
This was open as a duplicate bug which was fixed.

I've added a general fix for Windows 7, however;

I cannot add theme detection in the code as it relies on AWT. That said, if you wish to do it locally (by overriding the getCalendarHeight() and getButtonsVerticalSpace() in the settings) here's some code for checking themes:

http://stackoverflow.com/questions/3659055/cant-detect-that-windows-classic-theme-active

Thanks!