[TTS][Overlay] Fix base-scroll during expansion.
Fixes the scrolling of the base page during the expansion of the panel. There were several problems: 1) The SelectionPopupController was not returning the x,y value when the selection handles are shown. 2) The Overlay panel was mixing dps and pixels in the offsetting calculation. 3) The Contextual Search panel didn't know about the layout adjustment. Now the selection should end up centered when the panel is expanded. BUG=1012274,1011021 Change-Id: I16d69b8b2b4e14d9b3207d0f42ab0a8eb869b230 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1845790 Commit-Queue: Donn Denman <donnd@chromium.org> Commit-Queue: Matthew Jones <mdjones@chromium.org> Commit-Queue: Bo <boliu@chromium.org> Auto-Submit: Donn Denman <donnd@chromium.org> Reviewed-by:Matthew Jones <mdjones@chromium.org> Reviewed-by:
Bo <boliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#703798}
Showing
Please register or sign in to comment