diff --git a/web/lib/litegraph.core.js b/web/lib/litegraph.core.js index f96321ac078..9a006dfa93a 100644 --- a/web/lib/litegraph.core.js +++ b/web/lib/litegraph.core.js @@ -8191,7 +8191,7 @@ LGraphNode.prototype.executeAction = function(action) **/ LGraphCanvas.prototype.renderInfo = function(ctx, x, y) { x = x || 10; - y = y || this.canvas.height - 80; + y = y || this.canvas.offsetHeight - 80; ctx.save(); ctx.translate(x, y); diff --git a/web/scripts/app.js b/web/scripts/app.js index d3a05c2750e..6f238b2c711 100644 --- a/web/scripts/app.js +++ b/web/scripts/app.js @@ -4,18 +4,6 @@ import { api } from "./api.js"; import { defaultGraph } from "./defaultGraph.js"; import { getPngMetadata, importA1111, getLatentMetadata } from "./pnginfo.js"; -// DPI scaling fix, see https://github.com/comfyanonymous/ComfyUI/pull/845 -(function() { - const originalRenderInfo = LGraphCanvas.prototype.renderInfo - LGraphCanvas.prototype.renderInfo = function(ctx, x, y) { - // Patch renderInfo() to use canvas.offsetHeight instead of canvas.height as bottom viewpoint bound - if (!y) { - y = this.canvas.offsetHeight - 80 - } - return originalRenderInfo.call(this, ctx, x, y) - } -})() - /** * @typedef {import("types/comfy").ComfyExtension} ComfyExtension */