Scroll HTML report box when pushing new lines in immediate mode
This commit is contained in:
parent
65531accf6
commit
77ed62f506
|
@ -37,7 +37,13 @@ REPORTER& WX_HTML_REPORT_BOX::Report( const wxString& aText, SEVERITY aSeverity
|
||||||
m_messages.push_back( aText );
|
m_messages.push_back( aText );
|
||||||
|
|
||||||
if( m_immediateMode )
|
if( m_immediateMode )
|
||||||
|
{
|
||||||
Flush();
|
Flush();
|
||||||
|
int px, py, x, y;
|
||||||
|
GetScrollPixelsPerUnit( &px, &py );
|
||||||
|
GetVirtualSize( &x, &y );
|
||||||
|
Scroll( -1, y * py );
|
||||||
|
}
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue