chromeos: get app-list reorder animations working again
As part of https://chromium-review.googlesource.com/c/chromium/src/+/1547051 InvalidateLayout() was changed to result in a Layout() at a later date. This means there may be an additional Layout() called. AppsGridView cancels any animations if Layout() is called. Currently, an async layout is being triggered as part of preparing for the animation. Which means the reorder animation is canceled. The fix is to explicitly force a layout (which makes the pending layout do nothing) and further ignore the layout call. BUG=949713 TEST=see steps in bug. Change-Id: I9aa887e4e49b182a2912a6c599fa26618429e1d9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1562372Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#649643}
Showing
Please register or sign in to comment