diff --git a/pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor.cpp b/pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor.cpp index c8ebc57da3..4d4b29d568 100644 --- a/pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor.cpp +++ b/pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor.cpp @@ -391,6 +391,7 @@ bool DIALOG_FOOTPRINT_BOARD_EDITOR::TransferDataToWindow() } m_itemsGrid->SetRowLabelSize( m_itemsGrid->GetVisibleWidth( -1, false, true, true ) ); + m_modelsGrid->SetColSize( 1, m_modelsGrid->GetVisibleWidth( 1, true, false, false ) ); Layout(); adjustGridColumns( m_itemsGrid->GetRect().GetWidth()); @@ -826,7 +827,9 @@ void DIALOG_FOOTPRINT_BOARD_EDITOR::adjustGridColumns( int aWidth ) for( int i = 1; i < m_itemsGrid->GetNumberCols(); i++ ) itemsWidth -= m_itemsGrid->GetColSize( i ); - m_itemsGrid->SetColSize( 0, std::max( itemsWidth, 120 ) ); + if( itemsWidth > 0 ) + m_itemsGrid->SetColSize( 0, std::max( itemsWidth, + m_itemsGrid->GetVisibleWidth( 0, true, false, false ) ) ); m_modelsGrid->SetColSize( 0, modelsWidth - m_modelsGrid->GetColSize( 1 ) - 5 ); }