X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/23d8bb2c66855225b5ae6110b7b9c4844fe4999b..31a06b07cce898a22d0ca3992501e85da9c22f13:/src/univ/menu.cpp diff --git a/src/univ/menu.cpp b/src/univ/menu.cpp index 46c328ebcb..586b829b2d 100644 --- a/src/univ/menu.cpp +++ b/src/univ/menu.cpp @@ -1548,6 +1548,9 @@ void wxMenuBar::Attach(wxFrame *frame) SetCursor(wxCURSOR_ARROW); SetFont(wxSystemSettings::GetSystemFont(wxSYS_SYSTEM_FONT)); + + // calculate and set our height (it won't be changed any more) + SetSize(-1, GetBestSize().y); } // remember the last frame which had us to avoid unnecessarily reparenting