[ios] Fix Tabgrid UI imperfections
- Moves GridViewCntroller inset adjustments in -viewDidAppear and -willTransitionToSize to -viewDidlayoutSubviews. The tradeoffs is that -viewDidLayoutSubviews is called many more times than the other two, hence the original choice to stay away from it. However, the current approach gives a glitchy-like UI experience when rotating. - Updates Remote Tabs insets with horizontal safe area of scroll view if not on the screen. Doesn't update insets if visible since it will then have the right safe area already. This is still a hack, but a more comprehensive coverage so that it never ends up encroaching the safe area. Video: https://drive.google.com/open?id=1jzP0ClCOn0uQTZC9hJ2g0FUWsF-nSuqV Bug: 868270, 868285, 868658 Change-Id: Ia50146e1be9dfdde74bbf3e7d6b6042168b2ce8a Reviewed-on: https://chromium-review.googlesource.com/1153391 Commit-Queue: Chris Lu <thegreenfrog@chromium.org> Reviewed-by:Kurt Horimoto <kkhorimoto@chromium.org> Reviewed-by:
edchin <edchin@chromium.org> Cr-Commit-Position: refs/heads/master@{#579618}
Showing
Please register or sign in to comment