Skip to content

A platform for community discussion. Free, open, simple.

FIX: Dynamically adjust scale when rendering wizard canvases

David Taylorb717e23cebfc
diff --git a/app/assets/javascripts/wizard/lib/preview.js.es6 b/app/assets/javascripts/wizard/lib/preview.js.es6
index b96691a9f84..476c2149d52 100644
--- a/app/assets/javascripts/wizard/lib/preview.js.es6
+++ b/app/assets/javascripts/wizard/lib/preview.js.es6
@@ -45,7 +45,7 @@ export function createPreviewComponent(width, height, obj) {
this._super(...arguments);
const c = this.$("canvas")[0];
this.ctx = c.getContext("2d");
- this.ctx.scale(2, 2);
+ this.ctx.scale(scale, scale);
this.reload();
},