Skip to content

Commit 0562bd2

Browse files
committed
fix(*): build errors due to displayDensity changes #3310
1 parent b48f0fb commit 0562bd2

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

projects/igniteui-angular/src/lib/grids/summaries/summary-row.component.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,8 @@ export class IgxSummaryRowComponent implements DoCheck {
7070
return this.element.nativeElement;
7171
}
7272

73-
// TO DO: to be refactored when displayDensity refactoring is merged
7473
get gridDensity(): string {
75-
if (this.grid.isCosy()) {
76-
return DisplayDensity.cosy;
77-
} else if (this.grid.isCompact()) {
78-
return DisplayDensity.compact;
79-
} else {
80-
return DisplayDensity.comfortable;
81-
}
74+
return this.grid.displayDensity || DisplayDensity.comfortable;
8275
}
8376

8477
public getColumnSummaries(columnName) {

0 commit comments

Comments
 (0)