Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix snapping in Android horizontal tab switcher when reloading from c…
…old start We currently have a bug in the new horizontal tab switcher on Android where if tabs get reloaded after a cold start, the snap distance is not set properly, so the snapping behavior doesn't work properly. The fix is to update the snap distance in NonOverlappingStack#notifySizeChanged() in addition to contextChanged() (apparently when reloading tabs, contextChanged() is not called again after the StackLayout's size is properly set). Bug: 846961, 831359 Change-Id: I8c1be9f38889d6d1c45adefeb51af30d6a8bb4e3 Reviewed-on: https://chromium-review.googlesource.com/1081091 Reviewed-by: Matthew Jones <[email protected]> Commit-Queue: Ryan Landay <[email protected]> Cr-Original-Commit-Position: refs/heads/master@{#563647}(cherry picked from commit a73bfcd) Reviewed-on: https://chromium-review.googlesource.com/1082852 Reviewed-by: Ryan Landay <[email protected]> Cr-Commit-Position: refs/branch-heads/3440@{#94} Cr-Branched-From: 010ddcf-refs/heads/master@{#561733}
- Loading branch information