Skip to content

Commit 6434e7e

Browse files
committed
refactor(MeasureRow): get columnHeader's real width.
1 parent cb9ce0d commit 6434e7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Body/MeasureCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const MeasureCell: React.FC<MeasureCellProps> = props => {
2424
if (cellRef.current) {
2525
onColumnResize(columnKey, cellRef.current.offsetWidth);
2626
}
27-
}, [columnIndex]);
27+
}, []);
2828

2929
return (
3030
<ResizeObserver data={columnKey}>

0 commit comments

Comments
 (0)