Return the real height instead of -1.
Closes #15367.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74627
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
for ( parent = GetParent(); parent != NULL; parent = child->GetParent() )
{
if ( !parent->IsExpanded() )
for ( parent = GetParent(); parent != NULL; parent = child->GetParent() )
{
if ( !parent->IsExpanded() )
+ return parent->GetY2(lh);
y += parent->GetChildrenHeight(lh, child->GetIndexInParent());
y += lh;
child = parent;
y += parent->GetChildrenHeight(lh, child->GetIndexInParent());
y += lh;
child = parent;