Scroll HTML report box when pushing new lines in immediate mode

This commit is contained in:
Jon Evans 2021-02-27 19:55:19 -05:00
parent 65531accf6
commit 77ed62f506
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}