From 42c94e8e7bf9a451ec8a84db5835f18b2167315a Mon Sep 17 00:00:00 2001 From: "Ghislain B." Date: Wed, 24 Jul 2024 23:10:12 -0400 Subject: [PATCH] fix(core): pinning 1st column could caused the header to get misaligned - follows SlickGrid PR: https://github.com/6pac/SlickGrid/pull/1039 --- packages/common/src/core/slickGrid.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/src/core/slickGrid.ts b/packages/common/src/core/slickGrid.ts index 7b3d5faba..bc4f4de08 100644 --- a/packages/common/src/core/slickGrid.ts +++ b/packages/common/src/core/slickGrid.ts @@ -3036,7 +3036,7 @@ export class SlickGrid = Column, O e } // before applying column freeze, we need our viewports to be scrolled back to left to avoid misaligned column headers - if (newOptions.frozenColumn) { + if (newOptions.frozenColumn !== undefined && newOptions.frozenColumn >= 0) { this.getViewports().forEach(vp => vp.scrollLeft = 0); this.handleScroll(); // trigger scroll to realign column headers as well }