From 66a1dd3799fb36b5c2394faef060018fd538d39f Mon Sep 17 00:00:00 2001 From: Jay Boice Date: Tue, 12 Nov 2024 15:04:31 -0500 Subject: [PATCH] Fix issue flagged by Cailin --- packages/chart/src/components/LinearChart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/chart/src/components/LinearChart.tsx b/packages/chart/src/components/LinearChart.tsx index 60e83868c..f7155c97f 100644 --- a/packages/chart/src/components/LinearChart.tsx +++ b/packages/chart/src/components/LinearChart.tsx @@ -130,7 +130,7 @@ const LinearChart = forwardRef(({ parentHeight, p // height before bottom axis const initialHeight = useMemo( () => calcInitialHeight(config, currentViewport), - [config, currentViewport, parentHeight] + [config, currentViewport, parentHeight, config.heights?.vertical, config.heights?.horizontal] ) const forestHeight = useMemo(() => initialHeight + forestRowsHeight, [initialHeight, forestRowsHeight])