[ExpandablePaymentHandler] Remove resizing
Context: PH UI = Expandable Payment Handler UI Before change: * As users drag the PH UI, the WebContents resize after users stop dragging for 100ms. * As the PH UI opens, the WebContents flashes. It's because the sheet's offset keeps changing as during the opening animation. Each offset call WebContents to resize. After change: * The WebContents is set to its full height all the time (aka non-resizable). * As the PH UI opens, the WebContents no longer flashes. Change: * Set ThinWebView a height only when the toolbar has been laid out or the Tab view layout has changed. * Remove resizing logic Note that: * The WebContents' full height is different from FILL_PARENT, because at bottom-sheet's full height, the content area still have a part extending below the screen. This is why a delicate computation for the the height of the content visible area is still needed. Bug: 1054562, 1037646, 999196, 1058317 Change-Id: I04bab360f65109968a240c095d9c54133ecd9566 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2083305 Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#747102}
Showing
Please register or sign in to comment