From 5b7df27e4cf3d41c4fb4e2805462be1821989da5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Sat, 4 Mar 2006 20:34:12 +0000 Subject: [PATCH] More informative comment about previous commit. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/wincmn.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(); } -- 2.50.0