Skip to content

Commit

Permalink
Fix resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
kgabryje committed Nov 18, 2024
1 parent 0cad307 commit 3829797
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ export const Chart = props => {
};
}, []);

useEffect(() => {
resize();
}, [props.isFullSize, props.height, props.width]);

const getHeaderHeight = useCallback(() => {
if (headerRef.current) {
const computedStyle = getComputedStyle(
Expand Down

0 comments on commit 3829797

Please sign in to comment.