X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7cd7bc23d574ea5ec62f1abea73eb363a9ea8126..f49fd6d0cd050ccc55e1bcbb831e078eaac10feb:/src/mac/carbon/choice.cpp diff --git a/src/mac/carbon/choice.cpp b/src/mac/carbon/choice.cpp index 8898554b20..b0ba01d97d 100644 --- a/src/mac/carbon/choice.cpp +++ b/src/mac/carbon/choice.cpp @@ -17,6 +17,7 @@ #ifndef WX_PRECOMP #include "wx/menu.h" + #include "wx/dcclient.h" #endif #include "wx/mac/uma.h" @@ -100,7 +101,7 @@ bool wxChoice::Create(wxWindow *parent, SetSelection( 0 ); // Needed because it is a wxControlWithItems - SetBestSize( size ); + SetInitialSize( size ); return true; } @@ -358,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 ) ;