Skip to content

Commit 549e4e9

Browse files
authored
fix: Cherry-pick DH-21367: Fix shifting header group text (#2604)
Cherry-pick #2603
1 parent 44edc02 commit 549e4e9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/grid/src/GridRenderer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,7 @@ export class GridRenderer {
13871387
let columnIndex = startIndex;
13881388

13891389
while (columnIndex <= endIndex) {
1390-
const { columnCount } = metrics;
1390+
const { columnCount, calculatedColumnWidths } = metrics;
13911391
const modelColumn = getOrThrow(modelColumns, columnIndex);
13921392
const columnGroupName = model.textForColumnHeader(modelColumn, depth);
13931393
const columnGroupColor = model.colorForColumnHeader(modelColumn, depth);
@@ -1420,6 +1420,7 @@ export class GridRenderer {
14201420
const prevColumnWidth =
14211421
userColumnWidths.get(prevModelIndex) ??
14221422
allColumnWidths.get(prevColumnIndex) ??
1423+
calculatedColumnWidths.get(prevModelIndex) ??
14231424
columnWidth;
14241425

14251426
columnGroupLeft -= prevColumnWidth;

0 commit comments

Comments
 (0)