Remove usage of cached parent view measures in TabGridDialogParent
http://crrev.com/c/2023250 assumes that we can get updated parent view height and width by swapping the value when orientation changes, which doesn't hold true for all devices. This CL fixes this issue by dynamically getting the parent view measures instead of using cached values. Also, this CL adds a regression test to make sure that TabGridDialog and selection editor that shows within TabGridDialog always show in the same position with same size. Bug: 1060472 Change-Id: I65dc93ebbbdababfc699671a2339a53a47d6a3e5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2099239Reviewed-by:Wei-Yin Chen (陳威尹) <wychen@chromium.org> Commit-Queue: Yue Zhang <yuezhanggg@chromium.org> Cr-Commit-Position: refs/heads/master@{#750586}
Showing
Please register or sign in to comment