Make root scroller valid in both URL bar states
Some pages resize their main scroller to the viewport height as the URL bar is shown and hidden. In those cases, we should allow a valid root scroller at both heights. Otherwise, when the URL bar is hidden and the scroller resizes, it'll be demoted and the user will have to scroll all the way to the top to show the URL bar again. Currently, the root scroller must exactly match the initial containing block which does not resize in response to the URL bar. An obvious question would be why allow either height, rather than calculating the current viewport height and using that. In most cases a scroller we want to promote will not resize its height and we still want to keep those scrollers promoted. Bug: 798719 Change-Id: I11684ee5115a02f1f65868399f58074df43e764f Reviewed-on: https://chromium-review.googlesource.com/1036287 Commit-Queue: David Bokan <bokan@chromium.org> Reviewed-by:Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#555555}
Showing
Please register or sign in to comment