From ab7f58929b10d1b250765b707363aedd9f9d7866 Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Wed, 16 Jun 2021 14:47:34 -0400 Subject: [PATCH] fix(menu): toggle filter bar could be out of sync w/horizontal scroll - when toggling the filter bar (on and off), the horizontal scroll could become out of sync (the alignment of the filters with the column and its data), this happen because the filters are recreated every time we toggle back the filter bar, for that issue we simply need to move the horizontal scroll back to top-left and that fixes the issue --- packages/common/src/extensions/gridMenuExtension.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/common/src/extensions/gridMenuExtension.ts b/packages/common/src/extensions/gridMenuExtension.ts index 2a1004d01..943c8f200 100644 --- a/packages/common/src/extensions/gridMenuExtension.ts +++ b/packages/common/src/extensions/gridMenuExtension.ts @@ -477,6 +477,7 @@ export class GridMenuExtension implements Extension { // when displaying header row, we'll call "setColumns" which in terms will recreate the header row filters if (showHeaderRow === true) { this.sharedService.slickGrid.setColumns(this.sharedService.columnDefinitions); + this.sharedService.slickGrid.scrollColumnIntoView(0); // quick fix to avoid filter being out of sync with horizontal scroll } break; case 'toggle-toppanel':