]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
added automatic growing of in-place wxTextCtrls for generic wxListCtrl and wxTreeCtrl
[wxWidgets.git] / src / common / wincmn.cpp
index ef975509eaf419da83520ea8786c799de4568044..b95dde4a4b46a68f4bb4780e5b774bd01d9dfe04 100644 (file)
@@ -421,7 +421,7 @@ wxSize wxWindowBase::DoGetBestSize() const
               node = node->GetNext() )
         {
             wxWindow *win = node->GetData();
-            if ( win->IsTopLevel() || wxDynamicCast(win, wxStatusBar) )
+            if ( win->IsTopLevel() || wxDynamicCast(win, wxStatusBar) || !win->IsShown())
             {
                 // dialogs and frames lie in different top level windows -
                 // don't deal with them here; as for the status bars, they