Fix the issue that app icons have no response after alignment change
In ShelfContainerView::Layout, |shelf_view_|'s bounds are set to be its preferred size, a.k.a ShelfView::GetPreferredSize. However, during the calculation of the preferred size, the app icon's bounds are used and they may be updated by animation. As a result, when change the alignment, the app icon's bounds are not updated yet. It is the reason why the shelf view's size after alignment change is always 56x56. This CL fixes the issue by calculating the preferred size manually. Bug: 1009334 Change-Id: Ifd09fa8b595cfff581133dd38cb34d0abaaf43ff Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1833080Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Andrew Xu <andrewxu@chromium.org> Cr-Commit-Position: refs/heads/master@{#701860}
Showing
Please register or sign in to comment