@@ -2763,7 +2763,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
2763
2763
} ) ;
2764
2764
2765
2765
this . hideOverlays ( ) ;
2766
- const args : IGridScrollEventArgs = { direction : 'horizontal' , event : event , scrollPosition : this . headerContainer . scrollPosition } ;
2766
+ const args : IGridScrollEventArgs = { direction : 'horizontal' , event : event , scrollPosition : this . headerContainer . scrollPosition } ;
2767
2767
this . onScroll . emit ( args ) ;
2768
2768
}
2769
2769
@@ -2953,7 +2953,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
2953
2953
const destructor = takeUntil < any > ( this . destroy$ ) ;
2954
2954
fromEvent ( this . nativeElement , 'focusout' ) . pipe ( filter ( ( ) => ! ! this . navigation . activeNode ) , destructor ) . subscribe ( ( event ) => {
2955
2955
if ( ! this . crudService . cell && ! ! this . navigation . activeNode && ( event . target === this . tbody . nativeElement &&
2956
- this . navigation . activeNode . row >= 0 && this . navigation . activeNode . row < this . dataView . length )
2956
+ this . navigation . activeNode . row >= 0 && this . navigation . activeNode . row < this . dataView . length )
2957
2957
|| ( event . target === this . theadRow . nativeElement && this . navigation . activeNode . row === - 1 )
2958
2958
|| ( event . target === this . tfoot . nativeElement && this . navigation . activeNode . row === this . dataView . length ) ) {
2959
2959
this . navigation . activeNode = { } as IActiveNode ;
@@ -3687,7 +3687,10 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
3687
3687
}
3688
3688
3689
3689
public getColumnByVisibleIndex ( index : number ) : IgxColumnComponent {
3690
- return this . visibleColumns . find ( ( col ) => ! col . columnGroup && ! col . columnLayout && col . visibleIndex === index ) ;
3690
+ return this . visibleColumns . find ( ( col ) =>
3691
+ ! col . columnGroup && ! col . columnLayout &&
3692
+ col . visibleIndex === index
3693
+ ) ;
3691
3694
}
3692
3695
3693
3696
/**
@@ -3979,7 +3982,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
3979
3982
}
3980
3983
3981
3984
if ( ! target . pinned && ! column . pinned ) {
3982
- this . _reorderColumns ( column , target , pos , this . _unpinnedColumns ) ;
3985
+ this . _reorderColumns ( column , target , pos , this . _unpinnedColumns ) ;
3983
3986
}
3984
3987
3985
3988
this . _moveColumns ( column , target , pos ) ;
@@ -4814,8 +4817,8 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
4814
4817
protected getTheadRowHeight ( ) : number {
4815
4818
const height = this . getComputedHeight ( this . theadRow . nativeElement ) ;
4816
4819
return ( ! this . allowFiltering || ( this . allowFiltering && this . filterMode !== FilterMode . quickFilter ) ) ?
4817
- height - this . getFilterCellHeight ( ) :
4818
- height ;
4820
+ height - this . getFilterCellHeight ( ) :
4821
+ height ;
4819
4822
}
4820
4823
4821
4824
/**
@@ -4826,7 +4829,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
4826
4829
if ( this . showToolbar && this . toolbarHtml != null ) {
4827
4830
const height = this . getComputedHeight ( this . toolbarHtml . nativeElement ) ;
4828
4831
toolbarHeight = this . toolbarHtml . nativeElement . firstElementChild ?
4829
- height : 0 ;
4832
+ height : 0 ;
4830
4833
}
4831
4834
return toolbarHeight ;
4832
4835
}
@@ -4839,7 +4842,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
4839
4842
if ( this . footer ) {
4840
4843
const height = this . getComputedHeight ( this . footer . nativeElement ) ;
4841
4844
pagingHeight = this . footer . nativeElement . firstElementChild ?
4842
- height : 0 ;
4845
+ height : 0 ;
4843
4846
}
4844
4847
return pagingHeight ;
4845
4848
}
@@ -5999,7 +6002,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
5999
6002
}
6000
6003
6001
6004
if ( this . dataView [ rowIndex ] . detailsData ) {
6002
- this . navigation . setActiveNode ( { row : rowIndex } ) ;
6005
+ this . navigation . setActiveNode ( { row : rowIndex } ) ;
6003
6006
this . cdr . detectChanges ( ) ;
6004
6007
}
6005
6008
@@ -6545,11 +6548,11 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
6545
6548
}
6546
6549
if ( commit ) {
6547
6550
this . onRowAdded . subscribe ( rowData => {
6548
- // A check whether the row is in the current view
6549
- const index = this . dataView . findIndex ( data => data === rowData ) ;
6550
- const shouldScroll = this . navigation . shouldPerformVerticalScroll ( index , 0 ) ;
6551
- const showIndex = shouldScroll ? index : - 1 ;
6552
- this . showSnackbarFor ( showIndex ) ;
6551
+ // A check whether the row is in the current view
6552
+ const index = this . dataView . findIndex ( data => data === rowData ) ;
6553
+ const shouldScroll = this . navigation . shouldPerformVerticalScroll ( index , 0 ) ;
6554
+ const showIndex = shouldScroll ? index : - 1 ;
6555
+ this . showSnackbarFor ( showIndex ) ;
6553
6556
} ) ;
6554
6557
this . gridAPI . submit_add_value ( ) ;
6555
6558
this . gridAPI . addRowToData ( row . data ) ;
0 commit comments