Allow small widths if setting initial strings.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54966 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
c77049a04b
commit
e4e1487169
@ -350,7 +350,7 @@ wxSize wxChoice::DoGetBestSize() const
|
||||
// in the combobox
|
||||
if ( m_widget )
|
||||
{
|
||||
ret.x = 60; // start with something "sensible"
|
||||
ret.x = GetCount() > 0 ? 0 : 60; // start with something "sensible"
|
||||
int width;
|
||||
unsigned int count = GetCount();
|
||||
for ( unsigned int n = 0; n < count; n++ )
|
||||
|
Loading…
Reference in New Issue
Block a user