Skip to content

Commit 8681bdf

Browse files
Apply suggestions from code review
Co-authored-by: Deyan Kamburov <[email protected]>
1 parent b98f3bc commit 8681bdf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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
@@ -5600,7 +5600,7 @@ export abstract class IgxGridBaseDirective implements GridType,
56005600
*
56015601
* @example
56025602
* ```typescript
5603-
* const pinnedWidth = this.grid.getPinnedWidth();
5603+
* const pinnedWidth = this.grid.getPinnedStartWidth();
56045604
* ```
56055605
* @param takeHidden If we should take into account the hidden columns in the pinned area.
56065606
*/
@@ -5623,7 +5623,7 @@ export abstract class IgxGridBaseDirective implements GridType,
56235623
*
56245624
* @example
56255625
* ```typescript
5626-
* const pinnedWidth = this.grid.getPinnedWidth();
5626+
* const pinnedWidth = this.grid.getPinnedEndWidth();
56275627
* ```
56285628
* @param takeHidden If we should take into account the hidden columns in the pinned area.
56295629
*/
@@ -6763,7 +6763,7 @@ export abstract class IgxGridBaseDirective implements GridType,
67636763
* @hidden
67646764
*/
67656765
protected _moveColumns(from: IgxColumnComponent, to: IgxColumnComponent, pos: DropPosition) {
6766-
const orderedList = this._pinnedStartColumns.concat(this._unpinnedColumns).concat(this._pinnedEndColumns);
6766+
const orderedList = this._pinnedStartColumns.concat(this._unpinnedColumns, this._pinnedEndColumns);
67676767
const list = orderedList;
67686768
this._reorderColumns(from, to, pos, list);
67696769
const newList = this._resetColumnList(list);

projects/igniteui-angular/src/lib/grids/grid/grid.pinning.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ describe('IgxGrid - Column Pinning #grid', () => {
134134
expect(GridFunctions.isCellPinned(cell)).toBe(true);
135135
});
136136

137-
it('should allow pinning/unpinning via the column API', () => {
137+
it('should allow pinning/unpinning via the column API', () => {
138138
const col = grid.getColumnByName('ID');
139139

140140
col.pinned = true;

0 commit comments

Comments
 (0)