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

Fixes #10170
https://gitlab.com/kicad/code/kicad/issues/10170
This commit is contained in:
jean-pierre charras 2021-12-30 09:19:00 +01:00
parent 2d1357dc54
commit 7c3f0612f1
1 changed files with 6 additions and 0 deletions

View File

@ -136,6 +136,10 @@ DIALOG_SPICE_MODEL::DIALOG_SPICE_MODEL( wxWindow* aParent, SCH_SYMBOL& aSymbol,
void DIALOG_SPICE_MODEL::Init() 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_pasValue->SetValidator( m_spiceValidator );
m_modelType->SetValidator( m_notEmptyValidator ); m_modelType->SetValidator( m_notEmptyValidator );
@ -233,6 +237,8 @@ void DIALOG_SPICE_MODEL::Init()
m_powerNotebook->RemovePage( m_powerNotebook->FindPage( m_pwrExtData ) ); m_powerNotebook->RemovePage( m_powerNotebook->FindPage( m_pwrExtData ) );
m_scintillaTricks = std::make_unique<SCINTILLA_TRICKS>( m_libraryContents, wxT( "{}" ), false ); m_scintillaTricks = std::make_unique<SCINTILLA_TRICKS>( m_libraryContents, wxT( "{}" ), false );
Layout();
} }