From 436bc5cc51e19eefac21e7ec151f8172385e035a Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Fri, 5 Jan 2007 08:23:09 +0000 Subject: [PATCH] Menuwindow was 10 pixels away from the screen bottom when scrolling was enabled. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19706 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Menu.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/kits/interface/Menu.cpp b/src/kits/interface/Menu.cpp index 13a05fc2a2..06c32c32e1 100644 --- a/src/kits/interface/Menu.cpp +++ b/src/kits/interface/Menu.cpp @@ -2119,12 +2119,11 @@ BMenu::UpdateWindowViewSize(bool upWind) // If we need scrolling, resize the window to fit the screen and // attach scrollers to our cached MenuWindow. if (dynamic_cast(Supermenu()) == NULL) { - window->ResizeTo(Bounds().Width() + 2, screen.Frame().bottom - 10); + window->ResizeTo(Bounds().Width() + 2, screen.Frame().bottom); frame.top = 0; - } - else { - // Or, in case our parent was a BMenuBar enable scrolling with - // normal size. + } else { + // Or, in case our parent was a BMenuBar enable scrolling with + // normal size. window->ResizeTo(Bounds().Width() + 2, screen.Frame().bottom - frame.top); }