Skip to content

Commit

Permalink
refactor: put back line deleted by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding authored Dec 2, 2020
1 parent 8d0d982 commit 5104e51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/common/src/extensions/headerMenuExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ export class HeaderMenuExtension implements Extension {
const visibleColumns = [...this.sharedService.visibleColumns];
const columnPosition = visibleColumns.findIndex((col) => col.id === args.column.id);
this.sharedService.slickGrid.setOptions({ frozenColumn: columnPosition, enableMouseWheelScrollHandler: true });
this.sharedService.frozenVisibleColumnId = args.column.id;

// to freeze columns, we need to take only the visible columns and we also need to use setColumns() when some of them are hidden
// to make sure that we only use the visible columns, not doing this would show back some of the hidden columns
Expand Down

0 comments on commit 5104e51

Please sign in to comment.