[directory-tree] Scroll Recents item to the top of its box
cr.ui.tree uses this.labelElement.scrollIntoViewIfNeeded() to scroll a tree row into view. However, for the "Recent" item, which is always at the top of the tree, that only scrolls as far as its label, causing it to be drawn cut-off (see example image on the bug). Fix that: by overriding the Recent labelElement.scrollIntoViewIfNeeded to this.scrollIntoView, so the entire Recent box is shown (no cut-off) when cr.ui.tree scrolls to the Recent item. Test: the methods used here are web-apis and Blink tests those. No-presubmit: true No-try: true Bug: 1027973 Change-Id: I21370d3fd9aa34a781a8aff1e9fbc006f8e0053d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1933670 Commit-Queue: Noel Gordon <noel@chromium.org> Reviewed-by:Alex Danilo <adanilo@chromium.org> Auto-Submit: Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#718499}
Showing
Please register or sign in to comment