Skip to content

Commit

Permalink
fix(revert): calculate width's for column headers even if the data is…
Browse files Browse the repository at this point in the history
… empty

#14
  • Loading branch information
Den-dp committed Feb 27, 2017
1 parent 9e770f8 commit 26ad8e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/UiGridAutoFitColumnsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ export class UiGridAutoFitColumnsService {
}

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

Expand Down

0 comments on commit 26ad8e4

Please sign in to comment.