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:
Julian Smart 2008-08-04 15:32:34 +00:00
parent c77049a04b
commit e4e1487169

View File

@ -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++ )