BMenuFrame overlapped partially with a BMenuScroller. This fixes the

spurious lines drawn over the menu. Thanks to Stephan for making me 
notice this!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21327 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2007-06-05 11:50:15 +00:00
parent 3616859a05
commit cf5948ae6c

View File

@ -285,10 +285,9 @@ BMenuWindow::AttachScrollers()
fUpperScroller->SetEnabled(false);
fLowerScroller->SetEnabled(true);
fMenuFrame->ResizeBy(0, -2 * kScrollerHeight);
fMenuFrame->ResizeBy(0, -2 * kScrollerHeight - 1);
fMenuFrame->MoveBy(0, kScrollerHeight);
fMenuFrame->Bounds().PrintToStream();
fValue = 0;
fLimit = fMenu->Bounds().Height() - (frame.Height() - 2 * kScrollerHeight);
}