diff --git a/src/static_canvas.class.js b/src/static_canvas.class.js index 58b91f17..8b934cc3 100644 --- a/src/static_canvas.class.js +++ b/src/static_canvas.class.js @@ -1201,7 +1201,8 @@ if (options.viewBox) { width = options.viewBox.width; height = options.viewBox.height; - } else { + } + else { width = this.width; height = this.height; if (!this.svgViewportTransformation) {