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:
@@ -285,10 +285,9 @@ BMenuWindow::AttachScrollers()
|
|||||||
fUpperScroller->SetEnabled(false);
|
fUpperScroller->SetEnabled(false);
|
||||||
fLowerScroller->SetEnabled(true);
|
fLowerScroller->SetEnabled(true);
|
||||||
|
|
||||||
fMenuFrame->ResizeBy(0, -2 * kScrollerHeight);
|
fMenuFrame->ResizeBy(0, -2 * kScrollerHeight - 1);
|
||||||
fMenuFrame->MoveBy(0, kScrollerHeight);
|
fMenuFrame->MoveBy(0, kScrollerHeight);
|
||||||
|
|
||||||
fMenuFrame->Bounds().PrintToStream();
|
|
||||||
fValue = 0;
|
fValue = 0;
|
||||||
fLimit = fMenu->Bounds().Height() - (frame.Height() - 2 * kScrollerHeight);
|
fLimit = fMenu->Bounds().Height() - (frame.Height() - 2 * kScrollerHeight);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user