From 5980c8425ae4dbdd31464386468164b9f77287da Mon Sep 17 00:00:00 2001 From: Lukas Harbarth Date: Tue, 29 Oct 2024 16:18:00 +0100 Subject: [PATCH] fix(AnalyticalTable): calculate column width correctly when grouping --- packages/main/src/components/AnalyticalTable/index.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/main/src/components/AnalyticalTable/index.tsx b/packages/main/src/components/AnalyticalTable/index.tsx index 560281ca10b..25d40d1bb64 100644 --- a/packages/main/src/components/AnalyticalTable/index.tsx +++ b/packages/main/src/components/AnalyticalTable/index.tsx @@ -638,7 +638,13 @@ const AnalyticalTable = forwardRef { columnVirtualizer.measure(); - }, [columnVirtualizer, tableState.columnOrder, tableState.columnResizing?.isResizingColumn, columns]); + }, [ + columnVirtualizer, + tableState.columnOrder, + tableState.columnResizing?.isResizingColumn, + columns, + tableState.groupBy + ]); const totalSize = columnVirtualizer.getTotalSize(); const showVerticalEndBorder = tableState.tableClientWidth > totalSize;