File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
projects/igniteui-angular/src/lib/grids Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -7007,7 +7007,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
7007
7007
this . gridScroll . emit ( args ) ;
7008
7008
}
7009
7009
7010
- private horizontalScrollHandler ( event ) {
7010
+ protected horizontalScrollHandler ( event ) {
7011
7011
const scrollLeft = event . target . scrollLeft ;
7012
7012
this . headerContainer . onHScroll ( scrollLeft ) ;
7013
7013
this . _horizontalForOfs . forEach ( vfor => vfor . onHScroll ( scrollLeft ) ) ;
Original file line number Diff line number Diff line change @@ -1030,6 +1030,14 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
1030
1030
return this . values . length > 1 ;
1031
1031
}
1032
1032
1033
+ protected horizontalScrollHandler ( event ) {
1034
+ const scrollLeft = event . target . scrollLeft ;
1035
+ this . theadRow . headerContainers . forEach ( headerForOf => {
1036
+ headerForOf . onHScroll ( scrollLeft ) ;
1037
+ } ) ;
1038
+ super . horizontalScrollHandler ( event ) ;
1039
+ }
1040
+
1033
1041
/**
1034
1042
* @hidden
1035
1043
*/
Original file line number Diff line number Diff line change @@ -82,6 +82,10 @@ export class IgxPivotHeaderRowComponent extends IgxGridHeaderRowComponent implem
82
82
public populateColumnDimensionsByLevel ( ) {
83
83
const res = [ ] ;
84
84
const columnDimensions = this . grid . columnDimensions ;
85
+ if ( columnDimensions . length === 0 ) {
86
+ this . columnDimensionsByLevel = res ;
87
+ return ;
88
+ }
85
89
const cols = this . unpinnedColumnCollection ;
86
90
let totalDepth = columnDimensions . map ( x => PivotUtil . getDimensionDepth ( x ) ) . reduce ( ( acc , val ) => acc + val ) + 1 ;
87
91
if ( this . grid . hasMultipleValues ) {
You can’t perform that action at this time.
0 commit comments