Allow controlling the bottom sheet position.
This change introduces a way for content to set arbitrary bottom sheet offsets while the content is active. The offset set that way stays as long as the sheet doesn't change state or need to be refreshed (onLayoutChange) This change also ignore onContentSizeChanged calls that report no changes, as this would otherwise reset the sheet offset for no reasons. The immediate goal of this change is to allow controlling the height of the Autofill Assistant bottom sheet to have it scroll in sync with the browser. Change-Id: I020f393a580df0e85921ec7dd9388b72944f566d Bug: b/171792266 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2599863 Commit-Queue: Stephane Zermatten <szermatt@chromium.org> Reviewed-by:Matthew Jones <mdjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#842453}
Showing
Please register or sign in to comment