Stop scrolling |TreeView| and |TableView| to the top upon focus
Updates View::Focus() so that |ScrollView| contents do not unexpectedly scroll to the top upon their contents root receiving focus. By default, a |View| scrolls itself to local bounds upon receiving focus, but this does not make sense for the contents root of a |ScrollView|. To avoid this, we modify View::Focus() so that contents roots call their |ScrollView|'s ScrollViewToVisible() instead of their own. Bug: 811277 Change-Id: I845115f721ee2fe8f90c016cfc7669edcf451c85 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2152626Reviewed-by:Scott Violet <sky@chromium.org> Commit-Queue: Brian Liu Xu <brx@microsoft.com> Cr-Commit-Position: refs/heads/master@{#760423}
Showing
Please register or sign in to comment