Change menus on menu button to use more space
CL:1549297 adds scrolling to the top level menus hanging off a menu button. The calculation for limiting the height of the menu allowed the menu to sit inside the viewport with a large number of pixels gap resulting in a scroll-bar and scrollable region when the menu could fit inside the viewport without scrolling. Changes the calculation of positioning the top level menu so that more vertical space is used - limiting the height to 2 pixels less than the viewport. The 2 pixel gap at the bottom of the menu serves as a visual indicator for the user so they can see the menu ends there, rather than it appearing to be clipped. Bug: 1040058 Tests: browser_tests --gtest_filter="FileManagerJsTest.MultiMenu" Change-Id: Idb7d1199095d5d5e7482cc5b8eaa228439202bf0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2018364Reviewed-by:Luciano Pacheco <lucmult@chromium.org> Commit-Queue: Alex Danilo <adanilo@chromium.org> Cr-Commit-Position: refs/heads/master@{#735659}
Showing
Please register or sign in to comment