This time, ensure that the grid is increased and the main form gets an
event
This commit is contained in:
Seth Hillbrand 2022-01-24 16:30:30 -08:00
parent a054a46136
commit efb323d57d
1 changed files with 4 additions and 1 deletions

View File

@ -797,10 +797,13 @@ void DIALOG_SYMBOL_PROPERTIES::OnGridEditorShown( wxGridEvent& aEvent )
/// Queue up an event to ensure the widget gets resized if the editor needs it
wxSizeEvent *evt = new wxSizeEvent();
evt->SetSize( wxSize( m_width, -1 ) );
evt->SetSize( wxSize( m_width + 1, -1 ) );
wxQueueEvent( m_fieldsGrid, evt );
wxSizeEvent *frmEvt = new wxSizeEvent();
evt->SetSize( wxSize( -1, -1 ) );
wxQueueEvent( this, frmEvt );
}