From e4e1487169a6403cb8bb86576c1612f46c19e34f Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 4 Aug 2008 15:32:34 +0000 Subject: [PATCH] Allow small widths if setting initial strings. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54966 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/choice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/choice.cpp b/src/gtk/choice.cpp index 2427fdc73f..97129ba2f1 100644 --- a/src/gtk/choice.cpp +++ b/src/gtk/choice.cpp @@ -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++ ) -- 2.45.2