X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6522713c7527e5f683a107dff8f40e3ea19a4745..bcd3d8d9e26e41615d26d457ba0e2b84b80a0356:/src/univ/framuniv.cpp?ds=sidebyside diff --git a/src/univ/framuniv.cpp b/src/univ/framuniv.cpp index 951ab8630a..6347d6252e 100644 --- a/src/univ/framuniv.cpp +++ b/src/univ/framuniv.cpp @@ -84,10 +84,19 @@ void wxFrame::PositionMenuBar() { // the menubar is positioned above the client size, hence the negative // y coord - m_frameMenuBar->SetSize(0, -m_frameMenuBar->GetSize().y, - GetClientSize().x, -1); + wxCoord heightMbar = m_frameMenuBar->GetSize().y; + m_frameMenuBar->SetSize(0, + +// FIXME: why doesn't this work as expected in wxGTK?? +#ifdef __WXGTK__ + 0, +#else + -heightMbar, +#endif + GetClientSize().x, heightMbar); } } + #endif // wxUSE_MENUS wxPoint wxFrame::GetClientAreaOrigin() const