Compare window size size with scaled buffer size

This commit is contained in:
JulianSmart
2016-07-01 11:36:30 +01:00
parent 511923a974
commit 3d8f9517f3

View File

@@ -4674,8 +4674,8 @@ void wxPropertyGrid::OnResize( wxSizeEvent& event )
} }
else else
{ {
int w = m_doubleBuffer->GetWidth(); int w = m_doubleBuffer->GetScaledWidth();
int h = m_doubleBuffer->GetHeight(); int h = m_doubleBuffer->GetScaledHeight();
// Double buffer must be large enough // Double buffer must be large enough
if ( w < width || h < (height+dblh) ) if ( w < width || h < (height+dblh) )