From b1a19e6b6c9f1a69821c0da773e2e3f94d554292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Va=CC=81clav=20Slavi=CC=81k?= Date: Mon, 7 Nov 2016 17:52:44 +0100 Subject: [PATCH] Improve wxChoice::GetBestSize on macOS Better match native sizing to fit the content by reducing the extra spacing. --- src/osx/choice_osx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/choice_osx.cpp b/src/osx/choice_osx.cpp index fd9a59daa7..06d90f26ad 100644 --- a/src/osx/choice_osx.cpp +++ b/src/osx/choice_osx.cpp @@ -247,7 +247,7 @@ wxSize wxChoice::DoGetBestSize() const // computed by the base class method to account for the arrow. const int lbHeight = wxWindow::DoGetBestSize().y; - return wxSize(wxChoiceBase::DoGetBestSize().x + 2*lbHeight + GetCharWidth(), + return wxSize(wxChoiceBase::DoGetBestSize().x + 4*GetCharWidth(), lbHeight); }