Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit 638422b

Browse files
committed
refactor: remove code that was meant for another PR
1 parent aa10558 commit 638422b

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/app/modules/angular-slickgrid/extensions/headerMenuExtension.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -221,15 +221,6 @@ export class HeaderMenuExtension implements Extension {
221221
if (this.sharedService.grid && this.sharedService.grid.getColumns && this.sharedService.grid.setColumns && this.sharedService.grid.getColumnIndex) {
222222
const columnIndex = this.sharedService.grid.getColumnIndex(column.id);
223223
const currentColumns = this.sharedService.grid.getColumns() as Column[];
224-
225-
// if we're using frozen columns, we need to readjust pinning when the new hidden column is on the left pinning container
226-
// we need to do this because SlickGrid freezes by index and has no knowledge of the columns themselves
227-
const frozenColumnIndex = this.sharedService.gridOptions.frozenColumn || -1;
228-
if (frozenColumnIndex >= 0 && frozenColumnIndex >= columnIndex) {
229-
this.sharedService.grid.setOptions({ frozenColumn: frozenColumnIndex - 1 });
230-
}
231-
232-
// then proceed with hiding the column in SlickGrid & trigger an event when done
233224
const visibleColumns = arrayRemoveItemByIndex(currentColumns, columnIndex);
234225
this.sharedService.visibleColumns = visibleColumns;
235226
this.sharedService.grid.setColumns(visibleColumns);

0 commit comments

Comments
 (0)