From 7c3f0612f12a7b09d097cc43596f56d811c67fed Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 30 Dec 2021 09:19:00 +0100 Subject: [PATCH] DIALOG_SPICE_MODEL: fix a cosmetic issue (no room for the help text) Fixes #10170 https://gitlab.com/kicad/code/kicad/issues/10170 --- eeschema/dialogs/dialog_spice_model.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eeschema/dialogs/dialog_spice_model.cpp b/eeschema/dialogs/dialog_spice_model.cpp index 6dc5da1688..210e354ebc 100644 --- a/eeschema/dialogs/dialog_spice_model.cpp +++ b/eeschema/dialogs/dialog_spice_model.cpp @@ -136,6 +136,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 ); @@ -233,6 +237,8 @@ void DIALOG_SPICE_MODEL::Init() m_powerNotebook->RemovePage( m_powerNotebook->FindPage( m_pwrExtData ) ); m_scintillaTricks = std::make_unique( m_libraryContents, wxT( "{}" ), false ); + + Layout(); }