Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
af15add9
Commit
af15add9
authored
Jul 09, 2023
by
comfyanonymous
Browse files
Fix annoyance with textbox unselecting in chromium.
parent
d5323d16
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
web/scripts/widgets.js
web/scripts/widgets.js
+4
-3
No files found.
web/scripts/widgets.js
View file @
af15add9
...
...
@@ -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
:
"
0
px
"
,
top
:
"
0
px
"
,
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
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment