From 6a180655337abb77aa81bca5384477c7d7205f78 Mon Sep 17 00:00:00 2001 From: kali-linex <87039059+kali-linex@users.noreply.github.com> Date: Wed, 24 May 2023 19:31:12 +0000 Subject: [PATCH] Revert incorrect changes --- web/scripts/widgets.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/scripts/widgets.js b/web/scripts/widgets.js index e7aa4cf1a..82168b08b 100644 --- a/web/scripts/widgets.js +++ b/web/scripts/widgets.js @@ -160,15 +160,15 @@ function addMultilineWidget(node, name, opts, app) { const transform = new DOMMatrix() .scaleSelf(elRect.width / ctx.canvas.width, elRect.height / ctx.canvas.height) .multiplySelf(ctx.getTransform()) - .translateSelf(margin / window.devicePixelRatio, (margin + y) / window.devicePixelRatio); + .translateSelf(margin, margin + y); Object.assign(this.inputEl.style, { transformOrigin: "0 0", transform: transform, left: "0px", top: "0px", - width: `${(widgetWidth - (margin * 2)) / window.devicePixelRatio}px`, - height: `${(this.parent.inputHeight - (margin * 2)) / window.devicePixelRatio}px`, + width: `${widgetWidth - (margin * 2)}px`, + height: `${this.parent.inputHeight - (margin * 2)}px`, position: "absolute", background: (!node.color)?'':node.color, color: (!node.color)?'':'white',