X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad0023978e7a61369f3180241f217df283308388..a930afc71b5aeac3ef8eaa406be948828aed3469:/src/mac/carbon/choice.cpp?ds=sidebyside diff --git a/src/mac/carbon/choice.cpp b/src/mac/carbon/choice.cpp index ff814d8561..b0ba01d97d 100644 --- a/src/mac/carbon/choice.cpp +++ b/src/mac/carbon/choice.cpp @@ -101,7 +101,7 @@ bool wxChoice::Create(wxWindow *parent, SetSelection( 0 ); // Needed because it is a wxControlWithItems - SetBestSize( size ); + SetInitialSize( size ); return true; } @@ -359,6 +359,7 @@ wxSize wxChoice::DoGetBestSize() const wxCoord width, height ; dc.GetTextExtent( wxT("X"), &width, &height); int cx = width ; + lbHeight += 4; #else // And just a bit more int cx = ::TextWidth( "X" , 0 , 1 ) ;