Skip to content

Commit ace30d6

Browse files
author
mmart1n
committed
fix(grid): enable/disable summaries run time
1 parent 1f2e747 commit ace30d6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,22 +229,22 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
229229
public loadingGridTemplate: TemplateRef<any>;
230230

231231
/**
232-
* Sets summaryRow height
232+
* Get/Set summaryRow height
233233
*/
234234
@Input()
235235
public set summaryRowHeight(value: number) {
236236
this._summaryRowHeight = value;
237237
this.summaryService.summaryHeight = value;
238-
// if (value === 0) {
239-
//this.summaryService.calcMaxSummaryHeight();
240-
// }
241238
if (!this._init) {
242239
this.reflow();
243240
}
244241
}
245242

246243
public get summaryRowHeight(): number {
247-
return this._summaryRowHeight || this.summaryService.summaryHeight;
244+
if (this.hasSummarizedColumns && this.rootSummariesEnabled) {
245+
return this._summaryRowHeight || this.summaryService.calcMaxSummaryHeight();
246+
}
247+
return 0;
248248
}
249249

250250
/**

0 commit comments

Comments
 (0)