Skip to content

Commit 26ad8e4

Browse files
committed
fix(revert): calculate width's for column headers even if the data is empty
#14
1 parent 9e770f8 commit 26ad8e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/UiGridAutoFitColumnsService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ export class UiGridAutoFitColumnsService {
8787
}
8888

8989
columnsProcessor(renderedColumnsToProcess?: Array<IExtendedGridColumn>, rows?: Array<uiGrid.IGridRow>) {
90+
if (!rows.length) {
91+
return renderedColumnsToProcess;
92+
}
9093
// TODO: respect existing colDef options
9194
// if (col.colDef.enableColumnAutoFitting === false) return;
9295

0 commit comments

Comments
 (0)