Fix annoyance with textbox unselecting in chromium.

This commit is contained in:
comfyanonymous 2023-07-09 15:41:19 -04:00
parent d5323d16e0
commit af15add967
1 changed files with 4 additions and 3 deletions

View File

@ -163,11 +163,12 @@ function addMultilineWidget(node, name, opts, app) {
.multiplySelf(ctx.getTransform())
.translateSelf(margin, margin + y);
const scale = new DOMMatrix().scaleSelf(transform.a, transform.d)
Object.assign(this.inputEl.style, {
transformOrigin: "0 0",
transform: transform,
left: "0px",
top: "0px",
transform: scale,
left: `${transform.a + transform.e}px`,
top: `${transform.d + transform.f}px`,
width: `${widgetWidth - (margin * 2)}px`,
height: `${this.parent.inputHeight - (margin * 2)}px`,
position: "absolute",