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
This commit is contained in:
Stefano Ceccherini 2006-05-09 22:07:25 +00:00
parent a35d1f270c
commit f4ff3be7a4
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}