From f0aa6aa44228d52560973ef3d76b0f6d1827bc61 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 28 Jan 2021 11:34:36 +0000 Subject: [PATCH] Fix drop-down-too-narrow-on-first-drop bug. --- common/widgets/grid_combobox.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/widgets/grid_combobox.cpp b/common/widgets/grid_combobox.cpp index ca675eaa5c..b07a5d77aa 100644 --- a/common/widgets/grid_combobox.cpp +++ b/common/widgets/grid_combobox.cpp @@ -87,6 +87,9 @@ void GRID_CELL_COMBOBOX::BeginEdit( int aRow, int aCol, wxGrid* aGrid ) Combo()->SetFocus(); + // Work around a wxWidgets bug where the drop-down is the wrong width on the first drop. + Combo()->Set( Combo()->GetStrings() ); + #ifdef __WXOSX_COCOA__ // This is a work around for the combobox being simply dismissed when a // choice is made in it under OS X. The bug is almost certainly due to a