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

Unified Diff: third_party/WebKit/Source/devtools/front_end/data_grid/ViewportDataGrid.js

Issue 2716993002: [Devtools] Change logic of DataGrid's padding-left for grouping (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/data_grid/ViewportDataGrid.js
diff --git a/third_party/WebKit/Source/devtools/front_end/data_grid/ViewportDataGrid.js b/third_party/WebKit/Source/devtools/front_end/data_grid/ViewportDataGrid.js
index 9884c97d820a65063b75bd3aa69bbd721352876a..66f2685fc3fc824b694d49cdc00f6edb3ea85a9b 100644
--- a/third_party/WebKit/Source/devtools/front_end/data_grid/ViewportDataGrid.js
+++ b/third_party/WebKit/Source/devtools/front_end/data_grid/ViewportDataGrid.js
@@ -462,6 +462,10 @@ DataGrid.ViewportDataGridNode = class extends DataGrid.DataGridNode {
* @protected
*/
willAttach() {
+ var leftPadding = this.leftPadding;
+ var disclosureCell = this.disclosureCell();
+ if (leftPadding && disclosureCell)
+ disclosureCell.style.setProperty('padding-left', leftPadding + 'px');
}
/**

Powered by Google App Engine
This is Rietveld 408576698