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
94a27937
Commit
94a27937
authored
Mar 14, 2023
by
pythongosssss
Browse files
Better auto pos of images
parent
6a6256a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
web/scripts/app.js
web/scripts/app.js
+8
-1
No files found.
web/scripts/app.js
View file @
94a27937
...
...
@@ -142,7 +142,14 @@ class ComfyApp {
if
(
numImages
===
1
&&
!
imageIndex
)
{
this
.
imageIndex
=
imageIndex
=
0
;
}
let
shiftY
=
this
.
type
===
"
SaveImage
"
?
55
:
this
.
imageOffset
||
0
;
let
shiftY
;
if
(
this
.
imageOffset
!=
null
)
{
shiftY
=
this
.
imageOffset
;
}
else
{
shiftY
=
this
.
computeSize
()[
1
];
}
let
dw
=
this
.
size
[
0
];
let
dh
=
this
.
size
[
1
];
dh
-=
shiftY
;
...
...
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