Ticket #11780 (closed defect: fixed)
Header control truncates text on OSX
| Reported by: | SnowLeopard | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.9.1 |
| Component: | wxOSX-Cocoa | Version: | 2.9-svn |
| Keywords: | OSX listctrl | Cc: | |
| Blocked By: | Patch: | no | |
| Blocking: |
Description
OSX 10.6
List control headers truncate the "hanging" part of letters such as 'y' or 'q' because the header control is not tall enough.
I see that the header's height is initialized like this:
m_headerHeight = wxRendererNative::Get().GetHeaderButtonHeight(this);
Which in turns calls this:
GetThemeMetric( kThemeMetricListHeaderHeight, &standardHeight );
I guess logically this should work, but as you can see in attached screenshot the height of "17" that I got on my machine is not tall enough. If I had to guess, maybe this height is not taking into account the padding that would appear above and below the text in the header. If that is the problem, perhaps an extra 5 could be added for the necessary padding, like this:
m_headerHeight = wxRendererNative::Get().GetHeaderButtonHeight(this)+5;
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

