Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Issue 916353002: cr.ui.Grid: Consider padding to determine the number of columns in a row. (Closed)

Created:
5 years, 10 months ago by fukino
Modified:
5 years, 10 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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. Committed: https://crrev.com/63c50e8e43e8167dc1b570e2905827f6890c6408 Cr-Commit-Position: refs/heads/master@{#317169}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address review comments. #

Total comments: 2

Patch Set 3 : Add a comment about calculation of the number of columns. #

Patch Set 4 : Move the padding-measuring code to updateMetrics_. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -5 lines) Patch
M chrome/test/data/webui/grid_test.html View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M ui/webui/resources/js/cr/ui/grid.js View 1 2 3 3 chunks +17 lines, -5 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
fukino
dbeam@, could you take a look? Thanks!
5 years, 10 months ago (2015-02-12 06:43:38 UTC) #2
Dan Beam
https://codereview.chromium.org/916353002/diff/1/ui/webui/resources/js/cr/ui/grid.js File ui/webui/resources/js/cr/ui/grid.js (right): https://codereview.chromium.org/916353002/diff/1/ui/webui/resources/js/cr/ui/grid.js#newcode109 ui/webui/resources/js/cr/ui/grid.js:109: var horizontailPadding = horizontalPadding https://codereview.chromium.org/916353002/diff/1/ui/webui/resources/js/cr/ui/grid.js#newcode110 ui/webui/resources/js/cr/ui/grid.js:110: parseFloat(window.getComputedStyle(this).paddingLeft) + only ...
5 years, 10 months ago (2015-02-12 19:41:43 UTC) #3
fukino
https://codereview.chromium.org/916353002/diff/1/ui/webui/resources/js/cr/ui/grid.js File ui/webui/resources/js/cr/ui/grid.js (right): https://codereview.chromium.org/916353002/diff/1/ui/webui/resources/js/cr/ui/grid.js#newcode109 ui/webui/resources/js/cr/ui/grid.js:109: var horizontailPadding = On 2015/02/12 19:41:43, Dan Beam wrote: ...
5 years, 10 months ago (2015-02-13 02:44:52 UTC) #4
Dan Beam
lgtm https://codereview.chromium.org/916353002/diff/1/ui/webui/resources/js/cr/ui/grid.js File ui/webui/resources/js/cr/ui/grid.js (right): https://codereview.chromium.org/916353002/diff/1/ui/webui/resources/js/cr/ui/grid.js#newcode123 ui/webui/resources/js/cr/ui/grid.js:123: (this.clientWidthWithScrollbar_ - horizontailPadding) / width); On 2015/02/13 02:44:52, ...
5 years, 10 months ago (2015-02-13 03:31:41 UTC) #5
fukino
Thank you! https://codereview.chromium.org/916353002/diff/20001/ui/webui/resources/js/cr/ui/grid.js File ui/webui/resources/js/cr/ui/grid.js (right): https://codereview.chromium.org/916353002/diff/20001/ui/webui/resources/js/cr/ui/grid.js#newcode120 ui/webui/resources/js/cr/ui/grid.js:120: if (rows * height <= this.clientHeight_) On ...
5 years, 10 months ago (2015-02-13 04:09:17 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/916353002/40001
5 years, 10 months ago (2015-02-13 05:16:01 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/32304)
5 years, 10 months ago (2015-02-13 06:30:38 UTC) #11
fukino
Hi dbeam@: Could you take another look? I moved the padding-measuring code from getColumnCount_ to ...
5 years, 10 months ago (2015-02-16 14:41:26 UTC) #12
fukino
ping just in case.
5 years, 10 months ago (2015-02-18 04:15:39 UTC) #13
Dan Beam
lgtm, thanks for the optimization
5 years, 10 months ago (2015-02-19 21:51:01 UTC) #14
fukino
On 2015/02/19 21:51:01, Dan Beam wrote: > lgtm, thanks for the optimization Thanks!
5 years, 10 months ago (2015-02-19 23:25:40 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/916353002/60001
5 years, 10 months ago (2015-02-19 23:27:24 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 10 months ago (2015-02-19 23:38:47 UTC) #18
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 23:39:28 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/63c50e8e43e8167dc1b570e2905827f6890c6408
Cr-Commit-Position: refs/heads/master@{#317169}

Powered by Google App Engine
This is Rietveld 408576698