]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/choice_osx.cpp
implement new wxBG_STYLE_XXX semantics for wxMSW too
[wxWidgets.git] / src / osx / choice_osx.cpp
index d9b3932deefefcb224ff96470147391d2b48ca9e..9702a7da67d1634a75ee703a90f5eacbdfd3cee4 100644 (file)
@@ -256,7 +256,8 @@ bool wxChoice::OSXHandleClicked( double WXUNUSED(timestampsec) )
 wxSize wxChoice::DoGetBestSize() const
 {
     int lbWidth = GetCount() > 0 ? 20 : 100;  // some defaults
-    int lbHeight = 20;
+    wxSize baseSize = wxWindow::DoGetBestSize();
+    int lbHeight = baseSize.y;
     int wLine;
 
     {