Skip to content

Commit

Permalink
Fix issue flagged by Cailin
Browse files Browse the repository at this point in the history
  • Loading branch information
jayb committed Nov 12, 2024
1 parent 54ec6e4 commit 66a1dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/chart/src/components/LinearChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const LinearChart = forwardRef<SVGAElement, LinearChartProps>(({ 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])

Expand Down

0 comments on commit 66a1dd3

Please sign in to comment.