]> git.saurik.com Git - wxWidgets.git/commitdiff
only take into account visible children in DoLayout()
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 May 2006 16:12:18 +0000 (16:12 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 May 2006 16:12:18 +0000 (16:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/toplvcmn.cpp

index c9eed594e93e3219e352747484ba9685d9ff5931..bf2742a04ede00e8df7414473762532a728109d5 100644 (file)
@@ -338,7 +338,7 @@ void wxTopLevelWindowBase::DoLayout()
         }
 
         // do we have any children at all?
-        if ( child )
+        if ( child && child->IsShown() )
         {
             // exactly one child - set it's size to fill the whole frame
             int clientW, clientH;