diff --git a/app/routes/CropSelector.tsx b/app/routes/CropSelector.tsx index 2b7e16b..4cc0c21 100644 --- a/app/routes/CropSelector.tsx +++ b/app/routes/CropSelector.tsx @@ -26,9 +26,10 @@ export default function CropSelector() { setContainerHeight(containerRef.current.offsetHeight); } } + updateContainerSize(); window.addEventListener('resize', updateContainerSize); return () => window.removeEventListener('resize', updateContainerSize); - }, [containerRef]) + }, []) useEffect(() => {