Fix drop-down-too-narrow-on-first-drop bug.

This commit is contained in:
Jeff Young 2021-01-28 11:34:36 +00:00
parent 69d58d39e5
commit f0aa6aa442
1 changed files with 3 additions and 0 deletions

View File

@ -87,6 +87,9 @@ void GRID_CELL_COMBOBOX::BeginEdit( int aRow, int aCol, wxGrid* aGrid )
Combo()->SetFocus(); 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__ #ifdef __WXOSX_COCOA__
// This is a work around for the combobox being simply dismissed when a // 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 // choice is made in it under OS X. The bug is almost certainly due to a