• Toni Barzic's avatar
    Update animating shelf background's drag handle bounds · 82ede06e
    Toni Barzic authored
    Updates how animating shelf background's drag handle layer bounds are
    calculated. Instead of directly using bounds from that the drag handle
    view has within the opaque shelf widget, calculate the animating drag
    handle bounds directly by centering the drag handle within the
    animating background bounds.
    
    Opaque background bounds are calculated based on the shelf widget size,
    which may differ from the animating (in-app) shelf size (e.g. on home
    screen). Using the opaque background drag handle bounds for animating
    background would displace the drag handle when that is the case.
    
    Change-Id: I51cb9a4d031286329784162193627bb09c608043
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2079839Reviewed-by: default avatarManu Cornet <manucornet@chromium.org>
    Commit-Queue: Toni Baržić <tbarzic@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#745497}
    82ede06e
hotseat_transition_animator.cc 5.86 KB