Skip to content

Commit

Permalink
fix(AnalyticalTable): calculate column width correctly when grouping (#…
Browse files Browse the repository at this point in the history
…6568)

Fixes #6534
  • Loading branch information
Lukas742 authored Oct 30, 2024
1 parent 09fa0db commit 1a5a024
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/main/src/components/AnalyticalTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,13 @@ const AnalyticalTable = forwardRef<AnalyticalTableDomRef, AnalyticalTablePropTyp

useEffect(() => {
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;
Expand Down

0 comments on commit 1a5a024

Please sign in to comment.