Skip to content

Commit d843a46

Browse files
committed
chore(*): Use visibleColumns instead to get lengthj of columns.
1 parent bbb9219 commit d843a46

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5642,7 +5642,7 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
56425642
}
56435643

56445644
/**
5645-
* Navigates to a posution in the grid based on provided `rowindex` and `visibleColumnIndex`.
5645+
* Navigates to a position in the grid based on provided `rowindex` and `visibleColumnIndex`.
56465646
* @remarks
56475647
* Also can execute a custom logic over the target element,
56485648
* through a callback function that accepts { targetType: GridKeydownTargetType, target: Object }

projects/igniteui-angular/src/lib/grids/grid-navigation.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ export class IgxGridNavigationService {
301301
}
302302

303303
public shouldPerformHorizontalScroll(visibleColIndex: number, rowIndex = -1) {
304-
if (visibleColIndex < 0 || visibleColIndex > this.grid.columnList.length - 1) { return false; }
304+
if (visibleColIndex < 0 || visibleColIndex > this.grid.visibleColumns.length - 1) { return false; }
305305
if (rowIndex < 0 || rowIndex > this.grid.dataView.length - 1) {
306306
return !this.isColumnFullyVisible(visibleColIndex);
307307
}

0 commit comments

Comments
 (0)