Kick wxWidgets to set column sizes the first time

Fixes https://gitlab.com/kicad/code/kicad/-/issues/6396
This commit is contained in:
Jon Evans 2021-12-13 18:37:36 -05:00
parent 4fd5c9cfa8
commit 6e51905e69
1 changed files with 6 additions and 1 deletions

View File

@ -475,6 +475,11 @@ WIDGET_HOTKEY_LIST::WIDGET_HOTKEY_LIST( wxWindow* aParent, HOTKEY_STORE& aHotkey
dv->GetColumn( 0 )->SetMinWidth( dv->GetMainWindow()->GetTextExtent( command_header ).x + pad );
dv->GetColumn( 1 )->SetMinWidth( dv->GetMainWindow()->GetTextExtent( longKey ).x + pad );
CallAfter( [&]()
{
GetDataView()->Update();
} );
#endif
std::vector<wxString> reserved_keys =