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
This commit is contained in:
parent
e1a23ec095
commit
436bc5cc51
@ -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<BMenuBar *>(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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user