From 33e82b796e7870a9523b6e9653877a2613f8f7a2 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Wed, 12 Dec 2018 23:21:10 +0100 Subject: Release 3.0.5 --- src/utils/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils') diff --git a/src/utils/utils.js b/src/utils/utils.js index 3bac0de..c2046a9 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -56,9 +56,9 @@ export function capitalize (s) { } // Calculate proportional width and height values when necessary -export function proportionalSize (element, width, height) { +export function proportionalSize (element, width, height, box) { if (width == null || height == null) { - var box = element.bbox() + box = box || element.bbox() if (width == null) { width = box.width / box.height * height -- cgit v1.2.3