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
febea8c1
Commit
febea8c1
authored
Jul 08, 2023
by
comfyanonymous
Browse files
Merge branch 'bugfix/img-offset' of
https://github.com/ltdrdata/ComfyUI
parents
9caab938
d43cff21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
web/scripts/app.js
web/scripts/app.js
+5
-1
web/scripts/widgets.js
web/scripts/widgets.js
+1
-0
No files found.
web/scripts/app.js
View file @
febea8c1
...
@@ -368,7 +368,11 @@ export class ComfyApp {
...
@@ -368,7 +368,11 @@ export class ComfyApp {
shiftY
=
w
.
last_y
;
shiftY
=
w
.
last_y
;
if
(
w
.
computeSize
)
{
if
(
w
.
computeSize
)
{
shiftY
+=
w
.
computeSize
()[
1
]
+
4
;
shiftY
+=
w
.
computeSize
()[
1
]
+
4
;
}
else
{
}
else
if
(
w
.
computedHeight
)
{
shiftY
+=
w
.
computedHeight
;
}
else
{
shiftY
+=
LiteGraph
.
NODE_WIDGET_HEIGHT
+
4
;
shiftY
+=
LiteGraph
.
NODE_WIDGET_HEIGHT
+
4
;
}
}
}
else
{
}
else
{
...
...
web/scripts/widgets.js
View file @
febea8c1
...
@@ -129,6 +129,7 @@ function addMultilineWidget(node, name, opts, app) {
...
@@ -129,6 +129,7 @@ function addMultilineWidget(node, name, opts, app) {
w
.
y
=
y
;
w
.
y
=
y
;
if
(
w
.
type
===
"
customtext
"
)
{
if
(
w
.
type
===
"
customtext
"
)
{
y
+=
freeSpace
;
y
+=
freeSpace
;
w
.
computedHeight
=
freeSpace
-
multi
.
length
*
4
;
}
else
if
(
w
.
computeSize
)
{
}
else
if
(
w
.
computeSize
)
{
y
+=
w
.
computeSize
()[
1
]
+
4
;
y
+=
w
.
computeSize
()[
1
]
+
4
;
}
else
{
}
else
{
...
...
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