Android: Fix overlay width for multi-window mode
The reported bug uncovered an issue about non-full-width overlay panel
having a wrong, full width when toggling (or resizing while in)
multi-window mode. The new panel width calculated from the new size
should have been used, but the raw, full width value was passed to
resizing logic of the content layer. This is a new corner case where
non-full-width overlay panel is preserved across size change.
This CL fixes it to ensure that the right values from
|OverlayPanelBase.getContentView{Width|Height}Px()| are used.
Also did a cleanup removing some dup'ed codes and combined WebContents/
native backing size updates as they are always done together.
Bug: 855386
Change-Id: I0a982dd21a083bbec7b9e0d5838a866ebcce31cb
Reviewed-on: https://chromium-review.googlesource.com/1127918Reviewed-by:
Matthew Jones <mdjones@chromium.org>
Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org>
Cr-Commit-Position: refs/heads/master@{#574019}
Showing
Please register or sign in to comment