Scroll Footprint Viewer to selected item when opening.

This commit is contained in:
Jeff Young 2018-10-02 21:53:00 +01:00
parent 6c693f80a7
commit b08766a2fa
1 changed files with 3 additions and 0 deletions

View File

@ -379,7 +379,10 @@ void FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList()
if( index == wxNOT_FOUND )
setCurFootprintName( wxEmptyString );
else
{
m_footprintList->SetSelection( index, true );
m_footprintList->EnsureVisible( index );
}
}