DIALOG_SPICE_MODEL: fix a cosmetic issue (no room for the help text)

Fixes #10170
https://gitlab.com/kicad/code/kicad/issues/10170

(cherry picked from commit 7c3f0612f1)
This commit is contained in:
jean-pierre charras 2021-12-30 09:19:00 +01:00 committed by Jeff Young
parent 5c94d59e75
commit 0ffa266315
1 changed files with 6 additions and 0 deletions

View File

@ -135,6 +135,10 @@ DIALOG_SPICE_MODEL::DIALOG_SPICE_MODEL( wxWindow* aParent, SCH_SYMBOL& aSymbol,
void DIALOG_SPICE_MODEL::Init()
{
// Reserve room for m_stInfoNote wxStaticText, to display longest texts ( 3 lines )
m_stInfoNote->SetLabel("X\nX\nX\n");
m_model->Layout();
m_pasValue->SetValidator( m_spiceValidator );
m_modelType->SetValidator( m_notEmptyValidator );
@ -232,6 +236,8 @@ void DIALOG_SPICE_MODEL::Init()
m_powerNotebook->RemovePage( m_powerNotebook->FindPage( m_pwrExtData ) );
m_scintillaTricks = std::make_unique<SCINTILLA_TRICKS>( m_libraryContents, wxT( "{}" ), false );
Layout();
}