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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui_lazy/SortableDataGrid.js

Issue 2540543002: [Devtools] Moved flatten children to children nodes instead of datagrid (Closed)
Patch Set: Merge branch 'master' into FLATEN_CHILDREN Created 4 years 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/ui_lazy/SortableDataGrid.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui_lazy/SortableDataGrid.js b/third_party/WebKit/Source/devtools/front_end/ui_lazy/SortableDataGrid.js
index c1b4f4f83cedc56b80cb4451370288c69d078bcd..49bb6db7982ce40c825b6a532ca6d5fecdb49230 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui_lazy/SortableDataGrid.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui_lazy/SortableDataGrid.js
@@ -134,6 +134,7 @@ UI.SortableDataGrid = class extends UI.ViewportDataGrid {
*/
sortNodes(comparator, reverseMode) {
this._sortingFunction = UI.SortableDataGrid.Comparator.bind(null, comparator, reverseMode);
+ this.rootNode().recalculateSiblings(0);
this.rootNode()._sortChildren(reverseMode);
this.scheduleUpdateStructure();
}

Powered by Google App Engine
This is Rietveld 408576698