use sizes from the HIG for the best height of the ComboCtrl on wxMac

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-11-25 22:48:47 +00:00
parent 9e7642ae0d
commit c66ed6682a

View File

@@ -1069,6 +1069,23 @@ wxSize wxComboCtrlBase::DoGetBestSize() const
fhei += 1;
#endif
#ifdef __WXMAC__
// these are the numbers from the HIG:
switch ( m_windowVariant )
{
case wxWINDOW_VARIANT_NORMAL:
default :
fhei = 22;
break;
case wxWINDOW_VARIANT_SMALL:
fhei = 19;
break;
case wxWINDOW_VARIANT_MINI:
fhei = 15;
break;
}
#endif
wxSize ret(sizeText.x + COMBO_MARGIN + DEFAULT_DROPBUTTON_WIDTH,
fhei);