X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d1017acfc30c5ee208535c2e84735d17d26b5010..bc5a847c1b4d89a9e26a3ac7b9e75f41b7530316:/src/univ/framuniv.cpp?ds=sidebyside diff --git a/src/univ/framuniv.cpp b/src/univ/framuniv.cpp index 9e97296700..727b476ace 100644 --- a/src/univ/framuniv.cpp +++ b/src/univ/framuniv.cpp @@ -96,18 +96,17 @@ void wxFrame::PositionMenuBar() // the menubar is positioned above the client size, hence the negative // y coord wxCoord heightMbar = m_frameMenuBar->GetSize().y; - + wxCoord heightTbar = 0; - // In between sits the toolbar if (m_frameToolBar) heightTbar = m_frameToolBar->GetSize().y; m_frameMenuBar->SetSize(0, #ifdef __WXPM__ // FIXME -- remove this, make wxOS2/Univ behave as // the rest of the world!!! - GetClientSize().y - heightMbar, + GetClientSize().y - heightMbar - heightTbar, #else - - heightMbar - heightTbar, + - (heightMbar + heightTbar), #endif GetClientSize().x, heightMbar); } @@ -196,8 +195,7 @@ wxPoint wxFrame::GetClientAreaOrigin() const } #endif // wxUSE_MENUS - // This is done in wxFrameBase already -#if 0 // wxUSE_TOOLBAR +#if wxUSE_TOOLBAR if ( m_frameToolBar ) { if ( m_frameToolBar->GetWindowStyleFlag() & wxTB_VERTICAL )