mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 02:42:45 +08:00
FIX: Dynamically adjust scale when rendering wizard canvases
This was a typo in fd0de64
This commit is contained in:
parent
24346e4612
commit
b717e23ceb
|
@ -45,7 +45,7 @@ export function createPreviewComponent(width, height, obj) {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
const c = this.$("canvas")[0];
|
const c = this.$("canvas")[0];
|
||||||
this.ctx = c.getContext("2d");
|
this.ctx = c.getContext("2d");
|
||||||
this.ctx.scale(2, 2);
|
this.ctx.scale(scale, scale);
|
||||||
this.reload();
|
this.reload();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user