-
Kristi Park authored
getTilesPerRow_() only checked the grid's maximum number of tiles per row when detecting if the tiles needed to be rebalanced. Therefore, if the window's maximum tiles per row was less, the tiles were not rebalanced. Use the lesser of the two maximums when detecting if the tiles need to be rebalanced. Screencast: https://drive.google.com/open?id=19amLd8JRyzLSzBeA4Ypt7PIZYlaqhaIz Bug: 961203 Change-Id: I3200a043b40b3282a61a7512e00e6b6ae4ebbd15 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1603209 Commit-Queue: Kristi Park <kristipark@chromium.org> Reviewed-by:
Kyle Milka <kmilka@chromium.org> Cr-Commit-Position: refs/heads/master@{#658367}
945f719a