X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e7dda1ffa3db91707f2a554fc3c8dffa34e0e510..9e691f46b2ec1b5dbbff2e51131e3c532e688a89:/src/univ/framuniv.cpp diff --git a/src/univ/framuniv.cpp b/src/univ/framuniv.cpp index 2ea330be1d..727b476ace 100644 --- a/src/univ/framuniv.cpp +++ b/src/univ/framuniv.cpp @@ -96,12 +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; + 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, + - (heightMbar + heightTbar), #endif GetClientSize().x, heightMbar); }