remove autosize and change column header css to properly respect column sizes (#2480)

This commit is contained in:
Anthony Dresser
2018-09-10 14:59:32 -07:00
committed by Karl Burtram
parent 432a209184
commit 4ceb869420
3 changed files with 6 additions and 4 deletions

View File

@@ -48,11 +48,14 @@ export class RowNumberColumn<T> implements Slick.Plugin<T> {
}
public getColumnDefinition(): Slick.Column<T> {
let columnWidth = this.options.numberOfRows.toString().length * sizePerDigit;
return {
id: 'rowNumber',
name: '',
field: 'rowNumber',
width: this.options.numberOfRows.toString().length * sizePerDigit,
width: columnWidth,
minWidth: columnWidth,
maxWidth: columnWidth,
resizable: false,
cssClass: this.options.cssClass,
focusable: false,