Kick wxWidgets to set column sizes the first time
Fixes https://gitlab.com/kicad/code/kicad/-/issues/6396
This commit is contained in:
parent
4fd5c9cfa8
commit
6e51905e69
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue