mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-20 03:13:30 +00:00
Fix annoyance with textbox unselecting in chromium.
This commit is contained in:
parent
d5323d16e0
commit
af15add967
@ -163,11 +163,12 @@ function addMultilineWidget(node, name, opts, app) {
|
|||||||
.multiplySelf(ctx.getTransform())
|
.multiplySelf(ctx.getTransform())
|
||||||
.translateSelf(margin, margin + y);
|
.translateSelf(margin, margin + y);
|
||||||
|
|
||||||
|
const scale = new DOMMatrix().scaleSelf(transform.a, transform.d)
|
||||||
Object.assign(this.inputEl.style, {
|
Object.assign(this.inputEl.style, {
|
||||||
transformOrigin: "0 0",
|
transformOrigin: "0 0",
|
||||||
transform: transform,
|
transform: scale,
|
||||||
left: "0px",
|
left: `${transform.a + transform.e}px`,
|
||||||
top: "0px",
|
top: `${transform.d + transform.f}px`,
|
||||||
width: `${widgetWidth - (margin * 2)}px`,
|
width: `${widgetWidth - (margin * 2)}px`,
|
||||||
height: `${this.parent.inputHeight - (margin * 2)}px`,
|
height: `${this.parent.inputHeight - (margin * 2)}px`,
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
|
Loading…
Reference in New Issue
Block a user