cr.ui.Grid: Consider padding to determine the number of columns in a row.
commit63c50e8e43e8167dc1b570e2905827f6890c6408
authorfukino <fukino@chromium.org>
Thu, 19 Feb 2015 23:38:37 +0000 (19 15:38 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 19 Feb 2015 23:39:14 +0000 (19 23:39 +0000)
treea574524f8fb5efbb44462a825149d84f7dae2de7
parent0a7adf8fde0ab0710987dd2a69293e5065c6b9a9
cr.ui.Grid: Consider padding to determine the number of columns in a row.

padding-left and padding-right should be subtracted from clientWidth to measure
the available width for grid items.

BUG=453764
TEST=adjust window width of Files.app and check that the problem doesn't occur.

Review URL: https://codereview.chromium.org/916353002

Cr-Commit-Position: refs/heads/master@{#317169}
chrome/test/data/webui/grid_test.html
ui/webui/resources/js/cr/ui/grid.js