From 592cd99fd574dd327bacf3948308c0de6f1626c7 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 13 Nov 2020 16:14:44 +0000 Subject: [PATCH] Pin dialog min size so that we don't wrap our (hacked) overbars. Fixes https://gitlab.com/kicad/code/kicad/issues/6371 --- eeschema/sch_text.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eeschema/sch_text.cpp b/eeschema/sch_text.cpp index d3115dbb84..e4f2f79e6b 100644 --- a/eeschema/sch_text.cpp +++ b/eeschema/sch_text.cpp @@ -1245,7 +1245,10 @@ HTML_MESSAGE_BOX* SCH_TEXT::ShowSyntaxHelp( wxWindow* aParentWindow ) ; HTML_MESSAGE_BOX* dlg = new HTML_MESSAGE_BOX( nullptr, _( "Syntax Help" ) ); - dlg->SetDialogSizeInDU( 280, 280 ); + wxSize sz( 320, 320 ); + + dlg->SetMinSize( dlg->ConvertDialogToPixels( sz ) ); + dlg->SetDialogSizeInDU( sz.x, sz.y ); wxString html_txt; ConvertMarkdown2Html( wxGetTranslation( msg ), html_txt );