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:
@@ -2119,12 +2119,11 @@ BMenu::UpdateWindowViewSize(bool upWind)
|
|||||||
// If we need scrolling, resize the window to fit the screen and
|
// If we need scrolling, resize the window to fit the screen and
|
||||||
// attach scrollers to our cached MenuWindow.
|
// attach scrollers to our cached MenuWindow.
|
||||||
if (dynamic_cast<BMenuBar *>(Supermenu()) == NULL) {
|
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;
|
frame.top = 0;
|
||||||
}
|
} else {
|
||||||
else {
|
// Or, in case our parent was a BMenuBar enable scrolling with
|
||||||
// Or, in case our parent was a BMenuBar enable scrolling with
|
// normal size.
|
||||||
// normal size.
|
|
||||||
window->ResizeTo(Bounds().Width() + 2, screen.Frame().bottom - frame.top);
|
window->ResizeTo(Bounds().Width() + 2, screen.Frame().bottom - frame.top);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user