Update tile padding before GetTileGridSize during AppsGridView layout
Result of GetTileGridSize() depends on the cached tile padding value, which is set in UpdateTilePadding(). Currently, AppsGridView::Layout calculates grid size before the padding is set, which means that the resulting grid size might not match the current apps grid state if layout is done just after the screen bounds change. The grid size is used to calculate item container bounds, which means the item container bounds get calculated incorrectly after screen bounds change. To fix the issue, call UpdateTilePadding() before GetTileGridSize() BUG=1003756 Change-Id: Ie390d6e3b48bc8fd00f88e9ecc17d759a4d82cc9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1807578Reviewed-by:Jun Mukai <mukai@chromium.org> Reviewed-by:
Alex Newcomer <newcomer@chromium.org> Commit-Queue: Toni Baržić <tbarzic@chromium.org> Cr-Commit-Position: refs/heads/master@{#697256}
Showing
Please register or sign in to comment