File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
projects/igniteui-angular/src/lib/grids Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -4102,9 +4102,8 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
4102
4102
}
4103
4103
4104
4104
get pinnedRowHeight ( ) {
4105
- const containerHeight = this . pinContainer ? this . pinContainer . nativeElement . clientHeight : 0 ;
4106
- // 2px border
4107
- return this . pinnedRecords . length > 0 ? containerHeight + 2 : 0 ;
4105
+ const containerHeight = this . pinContainer ? this . pinContainer . nativeElement . offsetHeight : 0 ;
4106
+ return this . pinnedRecords . length > 0 ? containerHeight : 0 ;
4108
4107
}
4109
4108
4110
4109
get totalHeight ( ) {
@@ -4423,7 +4422,7 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
4423
4422
}
4424
4423
4425
4424
this . calcHeight = this . _calculateGridBodyHeight ( ) ;
4426
- if ( this . pinnedRowHeight ) {
4425
+ if ( this . pinnedRowHeight && this . calcHeight ) {
4427
4426
this . calcHeight -= this . pinnedRowHeight ;
4428
4427
}
4429
4428
}
You can’t perform that action at this time.
0 commit comments