From a03c2ef4e088c22ce6c2283857b3ca61f26416ce Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sun, 16 Jul 2017 09:09:06 -0700 Subject: [PATCH] Fix wxComboBox entry sizing with GTK+ >= 3.20, see #17852 --- src/gtk/combobox.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gtk/combobox.cpp b/src/gtk/combobox.cpp index 6782de03f5..8d7a13f346 100644 --- a/src/gtk/combobox.cpp +++ b/src/gtk/combobox.cpp @@ -153,6 +153,9 @@ bool wxComboBox::Create( wxWindow *parent, wxWindowID id, const wxString& value, !HasFlag(wxTE_PROCESS_ENTER) ); gtk_editable_set_editable(GTK_EDITABLE(entry), true); +#ifdef __WXGTK3__ + gtk_entry_set_width_chars(entry, 0); +#endif } Append(n, choices);