Fix jitter when LocationIconView text label expands
LocationIconView overrides WidthMultiplier() in order to remove the shrinking animation. However, IsShrinking() will still return true during the shrinking phase due to |open_state_fraction_|, causing GetSizeForLabelWidth() to briefly return a non-offset width. Therefore, call a new function, SetUpForAnimation(), which will only animate the label in. Bug: 1012107 Change-Id: I2757003690d12edd6b24e0ea30d03d4ba622eba3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1850968 Commit-Queue: Kristi Park <kristipark@chromium.org> Reviewed-by:Peter Kasting <pkasting@chromium.org> Reviewed-by:
Evan Stade <estade@chromium.org> Cr-Commit-Position: refs/heads/master@{#705691}
Showing
Please register or sign in to comment