🎥 Make videos programmatically with React
`@remotion/player`: Prevent case where Player measurer returns NaN
Jonny Burger39c43c2eea73
diff --git a/packages/player/src/utils/use-element-size.ts b/packages/player/src/utils/use-element-size.tsindex 48318fb8de..62de39ff90 100644--- a/packages/player/src/utils/use-element-size.ts+++ b/packages/player/src/utils/use-element-size.ts@@ -72,7 +72,9 @@ export const useElementSize = (}const probableCssParentScale =- contentRect.width === 0 ? 1 : newSize[0].width / contentRect.width;+ contentRect.width === 0 || contentRect.width === 0+ ? 1+ : newSize[0].width / contentRect.width;const width = options.shouldApplyCssTransforms? newSize[0].width