Skip to content

Commit 7b95b6a

Browse files
committed
chore(*): Replace checking for pinning position with the getter
1 parent 8b070cc commit 7b95b6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2159,7 +2159,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
21592159
* @internal
21602160
*/
21612161
public get isPinningToStart() {
2162-
return this.pinning.columns && this.pinning.columns !== ColumnPinningPosition.End;
2162+
return this.pinning.columns !== ColumnPinningPosition.End;
21632163
}
21642164

21652165
/**
@@ -5185,7 +5185,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
51855185
sum += parseInt(col.calcWidth, 10);
51865186
}
51875187
}
5188-
if (this.pinning.columns === ColumnPinningPosition.Start) {
5188+
if (this.isPinningToStart) {
51895189
sum += this.featureColumnsWidth();
51905190
}
51915191

@@ -6679,7 +6679,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
66796679
if (this.hasVerticalScroll() && !this.isPercentWidth) {
66806680
width -= this.scrollSize;
66816681
}
6682-
if (this.pinning.columns === ColumnPinningPosition.End) {
6682+
if (!this.isPinningToStart) {
66836683
width -= this.featureColumnsWidth();
66846684
}
66856685

0 commit comments

Comments
 (0)