X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5ff845876ff171e2c9f3d543f30c37dff2599a2e..40319aa0ce7d201ae25554bb7a6ea3257e41a904:/src/common/wincmn.cpp?ds=sidebyside diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 09a2f04668..3f0393a3e1 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -446,8 +446,9 @@ void wxWindowBase::InvalidateBestSize() m_bestSizeCache = wxDefaultSize; // parent's best size calculation may depend on its children's - // best sizes, so let's invalidate it as well to be safe - // (but don't influence other wxTLWs) + // as long as child window we are in is not top level window itself + // (because the TLW size is never resized automatically) + // so let's invalidate it as well to be safe: if (m_parent && !IsTopLevel()) m_parent->InvalidateBestSize(); }