Fix grid sizing for symbol aliases.
This commit is contained in:
parent
75a4928134
commit
946f4a217d
|
@ -66,7 +66,11 @@ DIALOG_EDIT_COMPONENT_IN_LIBRARY::DIALOG_EDIT_COMPONENT_IN_LIBRARY( LIB_EDIT_FRA
|
||||||
// Give a bit more room for combobox editors
|
// Give a bit more room for combobox editors
|
||||||
m_grid->SetDefaultRowSize( m_grid->GetDefaultRowSize() + 4 );
|
m_grid->SetDefaultRowSize( m_grid->GetDefaultRowSize() + 4 );
|
||||||
m_aliasGrid->SetDefaultRowSize( m_aliasGrid->GetDefaultRowSize() + 4 );
|
m_aliasGrid->SetDefaultRowSize( m_aliasGrid->GetDefaultRowSize() + 4 );
|
||||||
m_aliasGrid->SetMinClientSize( wxSize( -1, 24 + m_aliasGrid->GetDefaultRowSize() * 2 ) );
|
|
||||||
|
// Work around a bug in wxWidgets where it fails to recalculate the grid height
|
||||||
|
// after changing the default row size
|
||||||
|
m_aliasGrid->AppendRows( 1 );
|
||||||
|
m_aliasGrid->DeleteRows( m_grid->GetNumberRows() - 1, 1 );
|
||||||
|
|
||||||
m_fields = new FIELDS_GRID_TABLE<LIB_FIELD>( this, aParent, m_libEntry );
|
m_fields = new FIELDS_GRID_TABLE<LIB_FIELD>( this, aParent, m_libEntry );
|
||||||
m_grid->SetTable( m_fields );
|
m_grid->SetTable( m_fields );
|
||||||
|
|
Loading…
Reference in New Issue