Let's make sure embedded wxPropertyGrid does not get negative size

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2009-01-30 17:07:18 +00:00
parent 398e314854
commit 253b70f1aa

View File

@@ -1118,6 +1118,8 @@ void wxPropertyGridManager::RecalculatePositions( int width, int height )
if ( m_iFlags & wxPG_FL_INITIALIZED )
{
int pgh = propgridBottomY - propgridY;
if ( pgh < 0 )
pgh = 0;
m_pPropGrid->SetSize( 0, propgridY, width, pgh );
m_extraHeight = height - pgh;