Fix in Menu::Layout function

The layout function alters the height of the menu to fit the canvas, but
only used the coordinate relative to its parent to check if it fits,
instead of the bounds relative to the canvas.