From 02cbc27a344365a7824555e2c219fcc399bfc4d5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 8 Oct 2001 01:03:52 +0000 Subject: [PATCH] fix menubar sizing (at least under windows) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/univ/menu.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.50.0