Fix grid changes that broke profiler (#2365)

This commit is contained in:
Matt Irvine
2018-08-30 10:11:02 -07:00
committed by GitHub
parent 4ae0daa17f
commit d94f86b44a
2 changed files with 13 additions and 4 deletions

View File

@@ -72,7 +72,16 @@ export class ProfilerTableEditor extends BaseEditor implements IProfilerControll
this._overlay.style.zIndex = '4';
parent.appendChild(this._overlay);
this._profilerTable = new Table(parent);
this._profilerTable = new Table(parent, {
sorter: {
sort: (args) => {
let input = this.input as ProfilerInput;
if (input && input.data) {
input.data.sort(args);
}
}
}
});
this._profilerTable.setSelectionModel(new RowSelectionModel());
attachTableStyler(this._profilerTable, this._themeService);