From cf5948ae6c7ae4898eb2c9048a29a02ecad69c98 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Tue, 5 Jun 2007 11:50:15 +0000 Subject: [PATCH] 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 --- src/kits/interface/MenuWindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/kits/interface/MenuWindow.cpp b/src/kits/interface/MenuWindow.cpp index 652266cd64..60fceaec19 100644 --- a/src/kits/interface/MenuWindow.cpp +++ b/src/kits/interface/MenuWindow.cpp @@ -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); }