From f4ff3be7a40f4f010cdc1144a1b094ad8cfc7ed4 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Tue, 9 May 2006 22:07:25 +0000 Subject: [PATCH] Fixed the problem mentioned in the previous commit: BMenuBar::FrameResized() now invalidates the view. We might be smarter and try to only invalidate part of it, though git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17408 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/MenuBar.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kits/interface/MenuBar.cpp b/src/kits/interface/MenuBar.cpp index 842e49d112..568114d1bc 100644 --- a/src/kits/interface/MenuBar.cpp +++ b/src/kits/interface/MenuBar.cpp @@ -214,8 +214,10 @@ BMenuBar::FrameMoved(BPoint newPosition) void BMenuBar::FrameResized(float newWidth, float newHeight) { - BMenu::FrameResized(newWidth, newHeight); fLastBounds->Set(0, 0, newWidth, newHeight); + if (Window()) + Invalidate(Bounds()); + BMenu::FrameResized(newWidth, newHeight); }