correct radio button best size calculation under CE (was too small by 1 pixel vertically) (modified patch 1891008)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
74052fe83b
commit
7eee360775
@ -290,6 +290,13 @@ wxSize wxRadioButton::DoGetBestSize() const
|
||||
dc.SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
|
||||
|
||||
s_radioSize = dc.GetCharHeight();
|
||||
|
||||
// radio button bitmap size under CE is bigger than the font height,
|
||||
// adding just one pixel seems to work fine for the default font but it
|
||||
// would be nice to find some better way to find the correct height
|
||||
#ifdef __WXWINCE__
|
||||
s_radioSize++;
|
||||
#endif // __WXWINCE__
|
||||
}
|
||||
|
||||
wxString str = GetLabel();
|
||||
|
Loading…
Reference in New Issue
Block a user