Improve wxChoice::GetBestSize on macOS

Better match native sizing to fit the content by reducing the extra spacing.
This commit is contained in:
Václav Slavík
2016-11-07 17:52:44 +01:00
parent b47319d515
commit b1a19e6b6c

View File

@@ -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);
}