From f80ffb32eb597f7b051ed1705c72b2934eb2eb30 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 29 Aug 2004 15:53:14 +0000 Subject: [PATCH] fixing repositioning problem for statusbar git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/frame.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/mac/carbon/frame.cpp b/src/mac/carbon/frame.cpp index 9bb8cb9357..10299ff3d2 100644 --- a/src/mac/carbon/frame.cpp +++ b/src/mac/carbon/frame.cpp @@ -110,7 +110,7 @@ wxStatusBar *wxFrame::OnCreateStatusBar(int number, long style, wxWindowID id, statusBar = new wxStatusBar(this, id, style, name); - statusBar->SetSize( 100 , 15 ) ; + statusBar->SetSize( 100 , WX_MAC_STATUSBAR_HEIGHT ) ; statusBar->SetFieldsCount(number); return statusBar; } @@ -121,12 +121,10 @@ void wxFrame::PositionStatusBar() { int w, h; GetClientSize(&w, &h); - int sw, sh; - m_frameStatusBar->GetSize(&sw, &sh); // Since we wish the status bar to be directly under the client area, // we use the adjusted sizes without using wxSIZE_NO_ADJUSTMENTS. - m_frameStatusBar->SetSize(0, h, w, sh); + m_frameStatusBar->SetSize(0, h, w, WX_MAC_STATUSBAR_HEIGHT); } } @@ -228,9 +226,7 @@ void wxFrame::DoGetClientSize(int *x, int *y) const #if wxUSE_STATUSBAR if ( GetStatusBar() && y ) { - int statusX, statusY; - GetStatusBar()->GetSize(&statusX, &statusY); - if ( y) *y -= statusY; + if ( y) *y -= WX_MAC_STATUSBAR_HEIGHT; } #endif // wxUSE_STATUSBAR