From 7d9fd0047471220c860d0e5a15feb1c052a95c5a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 17 Mar 2000 15:30:55 +0000 Subject: [PATCH] skip status bars in wxWindow::Fit git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6799 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 b6a2178167..0bc84593e1 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -394,10 +394,11 @@ wxSize wxWindowBase::DoGetBestSize() const node = node->GetNext() ) { wxWindow *win = node->GetData(); - if ( win->IsTopLevel() ) + if ( win->IsTopLevel() || wxDynamicCast(win, wxStatusBar) ) { // dialogs and frames lie in different top level windows - - // don't deal with them here + // don't deal with them here; as for the status bars, they + // don't lie in the client area at all continue; } -- 2.50.0