Stop invalidating size on wxTLW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -446,8 +446,9 @@ void wxWindowBase::InvalidateBestSize()
|
|||||||
m_bestSizeCache = wxDefaultSize;
|
m_bestSizeCache = wxDefaultSize;
|
||||||
|
|
||||||
// parent's best size calculation may depend on its children's
|
// parent's best size calculation may depend on its children's
|
||||||
// best sizes, so let's invalidate it as well to be safe:
|
// best sizes, so let's invalidate it as well to be safe
|
||||||
if (m_parent)
|
// (but don't influence other wxTLWs)
|
||||||
|
if (m_parent && !IsTopLevel())
|
||||||
m_parent->InvalidateBestSize();
|
m_parent->InvalidateBestSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user