Skip to content

Commit cc8fdb0

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Split pinned widths calc in pivot.
1 parent 5db917c commit cc8fdb0

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-grid.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@
8686
</div>
8787

8888
<div class="igx-grid__scroll" [style.height.px]="scrollSize" #scr [hidden]="isHorizontalScrollHidden" (pointerdown)="$event.preventDefault()">
89-
<div class="igx-grid__scroll-start" [style.width.px]="pivotPinnedWidth" [style.min-width.px]="pivotPinnedWidth"></div>
89+
<div class="igx-grid__scroll-start" [style.width.px]="pivotPinnedStartWidth" [style.min-width.px]="pivotPinnedStartWidth"></div>
9090
<div class="igx-grid__scroll-main" [style.width.px]="pivotUnpinnedWidth">
9191
<ng-template igxGridFor [igxGridForOf]="EMPTY_DATA" #scrollContainer>
9292
</ng-template>
9393
</div>
94-
<div class="igx-grid__scroll-end" [style.width.px]="pivotPinnedWidth" [style.min-width.px]="pivotPinnedWidth" [hidden]="pivotPinnedWidth === 0"></div>
94+
<div class="igx-grid__scroll-end" [style.width.px]="pivotPinnedEndWidth" [style.min-width.px]="pivotPinnedEndWidth" [hidden]="pivotPinnedEndWidth === 0"></div>
9595
</div>
9696

9797
<div class="igx-grid__tfoot" role="rowgroup" #tfoot>

projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-grid.component.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1306,10 +1306,15 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
13061306
}
13071307

13081308
/** @hidden @internal */
1309-
public get pivotPinnedWidth() {
1309+
public get pivotPinnedStartWidth() {
13101310
return !this._init ? this.pinnedStartWidth : 0;
13111311
}
13121312

1313+
/** @hidden @internal */
1314+
public get pivotPinnedEndWidth() {
1315+
return !this._init ? this.pinnedEndWidth : 0;
1316+
}
1317+
13131318
/** @hidden @internal */
13141319
public get pivotUnpinnedWidth() {
13151320
return this.unpinnedWidth || 0;

0 commit comments

Comments
 (0)