Skip to content

🎥 Make videos programmatically with React

`@remotion/web-renderer`: Restore return in getTextOverflowForLineHeight

JonnyBurgerd41671b1c6df
diff --git a/packages/web-renderer/src/get-biggest-bounding-client-rect.ts b/packages/web-renderer/src/get-biggest-bounding-client-rect.ts
index ce5ab4ebe2..829d96dab2 100644
--- a/packages/web-renderer/src/get-biggest-bounding-client-rect.ts
+++ b/packages/web-renderer/src/get-biggest-bounding-client-rect.ts
@@ -42,6 +42,8 @@ const getTextOverflowForLineHeight = (
// Text can overflow by (1 - lineHeight) * fontSize split across top and bottom.
// We apply the full amount to each side as a conservative safety margin.
const overflow = (1 - lineHeightValue) * fontSize;
+
+ return {top: overflow, bottom: overflow};
};
export const getBiggestBoundingClientRect = (