Better sizing of wx_html_report_panel in dialog_netlist (fix bug #1522758)
This commit is contained in:
parent
827dad3197
commit
f11b426151
|
@ -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()
|
REPORTER& WX_HTML_REPORT_PANEL::Reporter()
|
||||||
{
|
{
|
||||||
return m_reporter;
|
return m_reporter;
|
||||||
|
|
|
@ -46,6 +46,9 @@ public:
|
||||||
const wxSize& size = wxSize( 500,300 ), long style = wxTAB_TRAVERSAL );
|
const wxSize& size = wxSize( 500,300 ), long style = wxTAB_TRAVERSAL );
|
||||||
~WX_HTML_REPORT_PANEL();
|
~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
|
///> returns the reporter object that reports to this panel
|
||||||
REPORTER& Reporter();
|
REPORTER& Reporter();
|
||||||
|
|
||||||
|
|
|
@ -112,6 +112,8 @@ DIALOG_NETLIST::DIALOG_NETLIST( PCB_EDIT_FRAME* aParent, wxDC * aDC,
|
||||||
int severities = m_config->Read( NETLIST_FILTER_MESSAGES_KEY, -1l );
|
int severities = m_config->Read( NETLIST_FILTER_MESSAGES_KEY, -1l );
|
||||||
m_MessageWindow->SetVisibleSeverities( severities );
|
m_MessageWindow->SetVisibleSeverities( severities );
|
||||||
|
|
||||||
|
// Update sizes and sizers:
|
||||||
|
m_MessageWindow->MsgPanelSetMinSize( wxSize( -1, 150 ) );
|
||||||
GetSizer()->SetSizeHints( this );
|
GetSizer()->SetSizeHints( this );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue