Size columns after we've restored saved size of dialog.

Fixes https://gitlab.com/kicad/code/kicad/issues/13278
This commit is contained in:
Jeff Young 2023-01-06 14:33:14 +00:00
parent 4d7642a26c
commit e315eb871c
2 changed files with 16 additions and 0 deletions

View File

@ -62,6 +62,20 @@ EDA_LIST_DIALOG::EDA_LIST_DIALOG( wxWindow* aParent, const wxString& aTitle,
}
bool EDA_LIST_DIALOG::Show( bool show )
{
bool retVal = DIALOG_SHIM::Show( show );
if( show )
{
wxSizeEvent dummy;
onSize( dummy );
}
return retVal;
}
void EDA_LIST_DIALOG::initDialog( const wxArrayString& aItemHeaders, const wxString& aSelection )
{
if( aItemHeaders.Count() == 1 )

View File

@ -71,6 +71,8 @@ public:
long GetSelection();
bool Show( bool show ) override;
private:
virtual void onSize( wxSizeEvent& event ) override;
void onListItemActivated( wxListEvent& event ) override;