From 77ed62f5064b9ce142f8b3c7e019cbdd2c7febcf Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sat, 27 Feb 2021 19:55:19 -0500 Subject: [PATCH] Scroll HTML report box when pushing new lines in immediate mode --- common/dialogs/wx_html_report_box.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/dialogs/wx_html_report_box.cpp b/common/dialogs/wx_html_report_box.cpp index 81784bc739..9d7b23e8c4 100644 --- a/common/dialogs/wx_html_report_box.cpp +++ b/common/dialogs/wx_html_report_box.cpp @@ -37,7 +37,13 @@ REPORTER& WX_HTML_REPORT_BOX::Report( const wxString& aText, SEVERITY aSeverity m_messages.push_back( aText ); if( m_immediateMode ) + { Flush(); + int px, py, x, y; + GetScrollPixelsPerUnit( &px, &py ); + GetVirtualSize( &x, &y ); + Scroll( -1, y * py ); + } return *this; }