From cf4ef413b13d685643c2f4c8da9409c4b19cf8c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 17 Jan 2009 13:04:01 +0000 Subject: [PATCH] Set resizing mode before calling BMenuBar::ResizeToPreferred(), since the default menu bar resizing mode triggers some R5 compatibility behavior wich we don't want in MediaPlayer. This fixes the (apparantly) last remaining issue from #2180. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28917 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/mediaplayer/MainWin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/mediaplayer/MainWin.cpp b/src/apps/mediaplayer/MainWin.cpp index 17dc388fb1..a224019db5 100644 --- a/src/apps/mediaplayer/MainWin.cpp +++ b/src/apps/mediaplayer/MainWin.cpp @@ -142,10 +142,10 @@ MainWin::MainWin() fMenuBar = new BMenuBar(fBackground->Bounds(), "menu"); _CreateMenu(); fBackground->AddChild(fMenuBar); + fMenuBar->SetResizingMode(B_FOLLOW_NONE); fMenuBar->ResizeToPreferred(); fMenuBarWidth = (int)fMenuBar->Frame().Width() + 1; fMenuBarHeight = (int)fMenuBar->Frame().Height() + 1; - fMenuBar->SetResizingMode(B_FOLLOW_NONE); // video view rect = BRect(0, fMenuBarHeight, fBackground->Bounds().right,