Skip to content

Commit

Permalink
fix(pinning): put back vertical scroll on grid after removing freezing
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding-SE committed Sep 16, 2020
1 parent b90fe2d commit 75a47a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/common/src/extensions/gridMenuExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,8 @@ export class GridMenuExtension implements Extension {
switch (args.command) {
case 'clear-frozen-columns':
const visibleColumns = [...this.sharedService.visibleColumns];
this.sharedService.slickGrid.setOptions({ frozenColumn: -1 });
const showVerticalScroll = this.sharedService?.gridOptions?.enableGridMenu || false;
this.sharedService.slickGrid.setOptions({ frozenColumn: -1, alwaysShowVerticalScroll: showVerticalScroll });
if (Array.isArray(visibleColumns) && Array.isArray(this.sharedService.allColumns) && visibleColumns.length !== this.sharedService.allColumns.length) {
this.sharedService.slickGrid.setColumns(visibleColumns);
}
Expand Down

0 comments on commit 75a47a6

Please sign in to comment.