use default row height and update button column (#10885)

This commit is contained in:
Alan Ren
2020-06-11 16:09:25 -07:00
committed by GitHub
parent a63bdfedd5
commit 4322234d0b
3 changed files with 5 additions and 12 deletions

View File

@@ -66,13 +66,12 @@ export class ExplorerTable extends Disposable {
this._view = new TableDataView<Slick.SlickData>(undefined, undefined, undefined, (data: Slick.SlickData[]): Slick.SlickData[] => {
return explorerFilter.filter(this._filterStr, data);
});
this._table = new Table<Slick.SlickData>(parentElement, { dataProvider: this._view }, { forceFitColumns: true, rowHeight: 35 });
this._table = new Table<Slick.SlickData>(parentElement, { dataProvider: this._view }, { forceFitColumns: true });
this._table.setSelectionModel(new RowSelectionModel());
this._actionsColumn = new ButtonColumn<Slick.SlickData>({
id: 'actions',
iconCssClass: 'toggle-more',
title: ShowActionsText,
width: 40
title: ShowActionsText
});
this._table.registerPlugin(this._actionsColumn);
this._register(this._actionsColumn.onClick((args) => {