mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-24 21:30:15 +08:00
Revert incorrect changes
This commit is contained in:
parent
ae35641ebf
commit
6a18065533
@ -160,15 +160,15 @@ function addMultilineWidget(node, name, opts, app) {
|
|||||||
const transform = new DOMMatrix()
|
const transform = new DOMMatrix()
|
||||||
.scaleSelf(elRect.width / ctx.canvas.width, elRect.height / ctx.canvas.height)
|
.scaleSelf(elRect.width / ctx.canvas.width, elRect.height / ctx.canvas.height)
|
||||||
.multiplySelf(ctx.getTransform())
|
.multiplySelf(ctx.getTransform())
|
||||||
.translateSelf(margin / window.devicePixelRatio, (margin + y) / window.devicePixelRatio);
|
.translateSelf(margin, margin + y);
|
||||||
|
|
||||||
Object.assign(this.inputEl.style, {
|
Object.assign(this.inputEl.style, {
|
||||||
transformOrigin: "0 0",
|
transformOrigin: "0 0",
|
||||||
transform: transform,
|
transform: transform,
|
||||||
left: "0px",
|
left: "0px",
|
||||||
top: "0px",
|
top: "0px",
|
||||||
width: `${(widgetWidth - (margin * 2)) / window.devicePixelRatio}px`,
|
width: `${widgetWidth - (margin * 2)}px`,
|
||||||
height: `${(this.parent.inputHeight - (margin * 2)) / window.devicePixelRatio}px`,
|
height: `${this.parent.inputHeight - (margin * 2)}px`,
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
background: (!node.color)?'':node.color,
|
background: (!node.color)?'':node.color,
|
||||||
color: (!node.color)?'':'white',
|
color: (!node.color)?'':'white',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user