mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-06-09 07:37:14 +00:00
Better auto pos of images
This commit is contained in:
parent
6a6256a75c
commit
94a279373b
@ -142,7 +142,14 @@ class ComfyApp {
|
|||||||
if (numImages === 1 && !imageIndex) {
|
if (numImages === 1 && !imageIndex) {
|
||||||
this.imageIndex = imageIndex = 0;
|
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 dw = this.size[0];
|
||||||
let dh = this.size[1];
|
let dh = this.size[1];
|
||||||
dh -= shiftY;
|
dh -= shiftY;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user