eeschema, pcbnew: fix too narrow window showing the item color list
Fixes #4610 https://gitlab.com/kicad/code/kicad/issues/4610
This commit is contained in:
parent
3091bb1459
commit
2401ed587e
|
@ -195,6 +195,12 @@ void PANEL_EESCHEMA_COLOR_SETTINGS::createSwatches()
|
||||||
|
|
||||||
for( int layer : layers )
|
for( int layer : layers )
|
||||||
createSwatch( layer, LayerName( layer ) );
|
createSwatch( layer, LayerName( layer ) );
|
||||||
|
|
||||||
|
// Give a minimal width to m_colorsListWindow, in order to always having
|
||||||
|
// a full row shown
|
||||||
|
int min_width = m_colorsGridSizer->GetMinSize().x;
|
||||||
|
const int margin = 20; // A margin around the sizer
|
||||||
|
m_colorsListWindow->SetMinSize( wxSize( min_width + margin, -1 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -145,4 +145,10 @@ void PANEL_PCBNEW_COLOR_SETTINGS::createSwatches()
|
||||||
|
|
||||||
createSwatch( layer, name );
|
createSwatch( layer, name );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Give a minimal width to m_colorsListWindow, in order to always having
|
||||||
|
// a full row shown
|
||||||
|
int min_width = m_colorsGridSizer->GetMinSize().x;
|
||||||
|
const int margin = 20; // A margin around the sizer
|
||||||
|
m_colorsListWindow->SetMinSize( wxSize( min_width + margin, -1 ) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue