diff --git a/lib/utils.js b/lib/utils.js index d21bd893..2efd15be 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -184,7 +184,7 @@ export function calculateContentHeight( elementWidth, elementHeight, extraContentHeight = 0 -){ +) { const scaleFactor = fixedWidth / elementWidth; return Math.round(elementHeight * scaleFactor) + extraContentHeight; }