Improve Layer field spacing in footprint properties.

This commit is contained in:
Alex Shvartzkop 2024-05-21 04:11:56 +03:00
parent ba5e4b613f
commit 4cc29184c2
2 changed files with 4 additions and 4 deletions

View File

@ -353,8 +353,8 @@ bool DIALOG_FOOTPRINT_PROPERTIES::TransferDataToWindow()
for( PCB_LAYER_ID layer : board->GetEnabledLayers().Seq() )
col_size = std::max( col_size, GetTextExtent( board->GetLayerName( layer ) ).x );
// And the swatch:
col_size += 20;
// Swatch and gaps:
col_size += 26;
}
if( m_itemsGrid->IsColShown( col ) )

View File

@ -368,8 +368,8 @@ bool DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::TransferDataToWindow()
for( PCB_LAYER_ID layer : board->GetEnabledLayers().Seq() )
col_size = std::max( col_size, GetTextExtent( board->GetLayerName( layer ) ).x );
// And the swatch:
col_size += 20;
// Swatch and gaps:
col_size += 26;
}
if( m_itemsGrid->IsColShown( col ) )