@@ -3363,7 +3363,7 @@ export abstract class IgxGridBaseDirective implements GridType,
33633363 private _sortAscendingHeaderIconTemplate : TemplateRef < IgxGridHeaderTemplateContext > = null ;
33643364 private _sortDescendingHeaderIconTemplate : TemplateRef < IgxGridHeaderTemplateContext > = null ;
33653365 private _gridSize : Size = Size . Large ;
3366- private _defaultRowHeight = 50 ;
3366+ private _defaultRowHeight = 51 ;
33673367 private _rowCount : number ;
33683368 private _cellMergeMode : GridCellMergeMode = GridCellMergeMode . onSort ;
33693369 private _columnsToMerge : IgxColumnComponent [ ] = [ ] ;
@@ -5620,7 +5620,7 @@ export abstract class IgxGridBaseDirective implements GridType,
56205620 */
56215621 protected get defaultTargetBodyHeight ( ) : number {
56225622 const allItems = this . dataLength ;
5623- return this . renderedActualRowHeight * Math . min ( this . _defaultTargetRecordNumber ,
5623+ return this . renderedRowHeight * Math . min ( this . _defaultTargetRecordNumber ,
56245624 this . paginator ? Math . min ( allItems , this . paginator . perPage ) : allItems ) ;
56255625 }
56265626
@@ -5629,9 +5629,6 @@ export abstract class IgxGridBaseDirective implements GridType,
56295629 * The rowHeight input is bound to min-height css prop of rows that adds a 1px border in all cases
56305630 */
56315631 public get renderedRowHeight ( ) : number {
5632- if ( this . hasCellsToMerge ) {
5633- return this . rowHeight ;
5634- }
56355632 return this . rowHeight ;
56365633 }
56375634
@@ -7870,15 +7867,6 @@ export abstract class IgxGridBaseDirective implements GridType,
78707867 this . gridScroll . emit ( args ) ;
78717868 }
78727869
7873- protected get renderedActualRowHeight ( ) {
7874- let border = 1 ;
7875- if ( this . rowList . toArray ( ) . length > 0 ) {
7876- const rowStyles = this . document . defaultView . getComputedStyle ( this . rowList . first . nativeElement ) ;
7877- border = rowStyles . borderBottomWidth ? Math . ceil ( parseFloat ( rowStyles . borderBottomWidth ) ) : border ;
7878- }
7879- return this . rowHeight + border ;
7880- }
7881-
78827870 private executeCallback ( rowIndex , visibleColIndex = - 1 , cb : ( args : any ) => void = null ) {
78837871 if ( ! cb ) {
78847872 return ;
0 commit comments