Improve wxChoice::GetBestSize on macOS
Better match native sizing to fit the content by reducing the extra spacing.
This commit is contained in:
@@ -247,7 +247,7 @@ wxSize wxChoice::DoGetBestSize() const
|
|||||||
// computed by the base class method to account for the arrow.
|
// computed by the base class method to account for the arrow.
|
||||||
const int lbHeight = wxWindow::DoGetBestSize().y;
|
const int lbHeight = wxWindow::DoGetBestSize().y;
|
||||||
|
|
||||||
return wxSize(wxChoiceBase::DoGetBestSize().x + 2*lbHeight + GetCharWidth(),
|
return wxSize(wxChoiceBase::DoGetBestSize().x + 4*GetCharWidth(),
|
||||||
lbHeight);
|
lbHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user