diff --git a/common/dialogs/wx_html_report_panel.cpp b/common/dialogs/wx_html_report_panel.cpp index a5dc6d1265..c9dca09cff 100644 --- a/common/dialogs/wx_html_report_panel.cpp +++ b/common/dialogs/wx_html_report_panel.cpp @@ -45,6 +45,13 @@ WX_HTML_REPORT_PANEL::~WX_HTML_REPORT_PANEL() } +void WX_HTML_REPORT_PANEL::MsgPanelSetMinSize( const wxSize& aMinSize ) +{ + m_htmlView->SetMinSize( aMinSize ); + GetSizer()->SetSizeHints( this ); +} + + REPORTER& WX_HTML_REPORT_PANEL::Reporter() { return m_reporter; diff --git a/common/dialogs/wx_html_report_panel.h b/common/dialogs/wx_html_report_panel.h index 6e98d0e256..03e351f359 100644 --- a/common/dialogs/wx_html_report_panel.h +++ b/common/dialogs/wx_html_report_panel.h @@ -46,6 +46,9 @@ public: const wxSize& size = wxSize( 500,300 ), long style = wxTAB_TRAVERSAL ); ~WX_HTML_REPORT_PANEL(); + ///> Set the min size of the area which displays html messages: + void MsgPanelSetMinSize( const wxSize& aMinSize ); + ///> returns the reporter object that reports to this panel REPORTER& Reporter(); diff --git a/pcbnew/dialogs/dialog_netlist.cpp b/pcbnew/dialogs/dialog_netlist.cpp index 07915ae723..0a73ce40d3 100644 --- a/pcbnew/dialogs/dialog_netlist.cpp +++ b/pcbnew/dialogs/dialog_netlist.cpp @@ -112,6 +112,8 @@ DIALOG_NETLIST::DIALOG_NETLIST( PCB_EDIT_FRAME* aParent, wxDC * aDC, int severities = m_config->Read( NETLIST_FILTER_MESSAGES_KEY, -1l ); m_MessageWindow->SetVisibleSeverities( severities ); + // Update sizes and sizers: + m_MessageWindow->MsgPanelSetMinSize( wxSize( -1, 150 ) ); GetSizer()->SetSizeHints( this ); }