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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user