Size columns after we've restored saved size of dialog.
Fixes https://gitlab.com/kicad/code/kicad/issues/13278
This commit is contained in:
parent
4d7642a26c
commit
e315eb871c
|
@ -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 )
|
void EDA_LIST_DIALOG::initDialog( const wxArrayString& aItemHeaders, const wxString& aSelection )
|
||||||
{
|
{
|
||||||
if( aItemHeaders.Count() == 1 )
|
if( aItemHeaders.Count() == 1 )
|
||||||
|
|
|
@ -71,6 +71,8 @@ public:
|
||||||
|
|
||||||
long GetSelection();
|
long GetSelection();
|
||||||
|
|
||||||
|
bool Show( bool show ) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual void onSize( wxSizeEvent& event ) override;
|
virtual void onSize( wxSizeEvent& event ) override;
|
||||||
void onListItemActivated( wxListEvent& event ) override;
|
void onListItemActivated( wxListEvent& event ) override;
|
||||||
|
|
Loading…
Reference in New Issue