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

Issue 1006003004: Adding a visibility property to cr.ui.table.TableColumn. (Closed)

Created:
5 years, 9 months ago by Ben Kwa
Modified:
5 years, 9 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

Adding a visibility property to cr.ui.table.TableColumn. Setting the new #visible property on a column will show and hide it. Hidden columns are still added to the DOM, but as hidden elements. Hidden columns cannot be resized via the UI, but if their width is programatically set, they will appear at the requested size the next time they are made visible. BUG=468022 Committed: https://crrev.com/a0e8a714c577e98e26a1194c40b98ec0854c1c32 Cr-Commit-Position: refs/heads/master@{#321210}

Patch Set 1 #

Total comments: 22

Patch Set 2 : Address feedback. Fix resize jank. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -9 lines) Patch
M ui/webui/resources/js/cr/ui/table/table_column.js View 1 5 chunks +28 lines, -0 lines 0 comments Download
M ui/webui/resources/js/cr/ui/table/table_column_model.js View 1 2 chunks +36 lines, -3 lines 0 comments Download
M ui/webui/resources/js/cr/ui/table/table_header.js View 1 5 chunks +35 lines, -6 lines 0 comments Download
M ui/webui/resources/js/cr/ui/table/table_list.js View 1 3 chunks +24 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
Ben Kwa
5 years, 9 months ago (2015-03-17 20:14:05 UTC) #2
Dan Beam
https://codereview.chromium.org/1006003004/diff/1/ui/webui/resources/js/cr/ui/table/table_column.js File ui/webui/resources/js/cr/ui/table/table_column.js (right): https://codereview.chromium.org/1006003004/diff/1/ui/webui/resources/js/cr/ui/table/table_column.js#newcode64 ui/webui/resources/js/cr/ui/table/table_column.js:64: div.style.display = 'none'; div.hidden = !this.visible; https://codereview.chromium.org/1006003004/diff/1/ui/webui/resources/js/cr/ui/table/table_column.js#newcode110 ui/webui/resources/js/cr/ui/table/table_column.js:110: cr.defineProperty(TableColumn, ...
5 years, 9 months ago (2015-03-17 23:04:13 UTC) #3
Ben Kwa
Quick responses to some stuff first. Code changes to follow. https://codereview.chromium.org/1006003004/diff/1/ui/webui/resources/js/cr/ui/table/table_column_model.js File ui/webui/resources/js/cr/ui/table/table_column_model.js (right): https://codereview.chromium.org/1006003004/diff/1/ui/webui/resources/js/cr/ui/table/table_column_model.js#newcode111 ...
5 years, 9 months ago (2015-03-18 02:48:11 UTC) #4
Ben Kwa
Done. I also had to add some new code (#needsFullRedraw_) to TableHeader and TableList in ...
5 years, 9 months ago (2015-03-18 16:13:51 UTC) #8
Dan Beam
lgtm
5 years, 9 months ago (2015-03-18 21:09:08 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1006003004/80001
5 years, 9 months ago (2015-03-18 21:13:09 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:80001)
5 years, 9 months ago (2015-03-18 21:33:04 UTC) #12
commit-bot: I haz the power
5 years, 9 months ago (2015-03-18 21:33:52 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a0e8a714c577e98e26a1194c40b98ec0854c1c32
Cr-Commit-Position: refs/heads/master@{#321210}

Powered by Google App Engine
This is Rietveld 408576698