diff --git a/web/scripts/app.js b/web/scripts/app.js index a0ba79d05..88ce388ed 100644 --- a/web/scripts/app.js +++ b/web/scripts/app.js @@ -926,11 +926,8 @@ export class ComfyApp { const h = canvasEl.offsetHeight; canvasEl.width = Math.floor(sc * w); canvasEl.height = Math.floor(sc * h); - canvasEl.style.width = `${w}px`; - canvasEl.style.height = `${h}px`; this.scale = window.devicePixelRatio; this.ctx.scale(this.scale, this.scale); - canvas.draw(true, true); }; // Ensure the canvas fills the window