File tree Expand file tree Collapse file tree 4 files changed +11
-10
lines changed
projects/igniteui-angular/src/lib/grids/pivot-grid Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 33 < div class ="igx-grid__tr igx-grid__tr-header-row " role ="row " [style.width.px] ="width ">
44 < igx-pivot-row-dimension-header-group [ngClass] ="rowDimensionColumn.headerGroupClasses "
55 [ngStyle] ="rowDimensionColumn.headerGroupStyles | igxHeaderGroupStyle:rowDimensionColumn:grid.pipeTrigger " [column] ="rowDimensionColumn "
6- [style.min-width] ="getHeaderWidthFromDimension() "
7- [style.width] ="getHeaderWidthFromDimension() "
8- [style.flex-basis] ="getHeaderWidthFromDimension() "
96 [rowIndex] ="rowIndex "
107 [colIndex] ="colIndex "
118 [layout] ="layout "
Original file line number Diff line number Diff line change @@ -171,13 +171,6 @@ export class IgxPivotRowDimensionContentComponent extends IgxGridHeaderRowCompon
171171 return this . grid . hasHorizontalLayout ? 0 : this . dimension . level ;
172172 }
173173
174- protected getHeaderWidthFromDimension ( ) {
175- if ( this . grid . hasHorizontalLayout ) {
176- return this . width === - 1 ? 'fit-content' : this . width ;
177- }
178- return this . grid . rowDimensionWidth ( this . rootDimension ) ;
179- }
180-
181174 protected extractFromDimensions ( ) {
182175 if ( this . dimension && this . rowData ) {
183176 const col = this . extractFromDimension ( this . dimension , this . rowData ) ;
Original file line number Diff line number Diff line change 2626 [igxColumnMovingDrop] ="column "
2727 [column] ="column "
2828 (keydown) ="grid.navigation.headerNavigation($event) "
29+ [style.min-width] ="getHeaderWidthFromDimension() "
30+ [style.width] ="getHeaderWidthFromDimension() "
31+ [style.flex-basis] ="getHeaderWidthFromDimension() "
2932 >
3033 </ igx-pivot-row-dimension-header >
3134 @if (!column.columnGroup && column.resizable) {
Original file line number Diff line number Diff line change @@ -146,6 +146,14 @@ export class IgxPivotRowDimensionHeaderGroupComponent extends IgxGridHeaderGroup
146146 } ;
147147 }
148148
149+
150+ protected getHeaderWidthFromDimension ( ) {
151+ if ( this . grid . hasHorizontalLayout ) {
152+ return this . parent . width === - 1 ? 'fit-content' : this . width ;
153+ }
154+ return this . grid . rowDimensionWidth ( this . parent . rootDimension ) ;
155+ }
156+
149157 private findRootDimension ( field : string ) : IPivotDimension {
150158 const rows = this . grid . rowDimensions ;
151159 let tempRow ;
You can’t perform that action at this time.
0 commit comments