mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-27 23:00:20 +08:00
compensate offset on showimage
* adding widget caused misaligned offset
This commit is contained in:
parent
969dffa8da
commit
f8dd134d35
@ -151,7 +151,7 @@ export const ComfyWidgets = {
|
|||||||
function showImage(name) {
|
function showImage(name) {
|
||||||
// Position the image somewhere sensible
|
// Position the image somewhere sensible
|
||||||
if (!node.imageOffset) {
|
if (!node.imageOffset) {
|
||||||
node.imageOffset = uploadWidget.last_y ? uploadWidget.last_y + 25 : 75;
|
node.imageOffset = uploadWidget.last_y ? uploadWidget.last_y + 50 : 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
const img = new Image();
|
const img = new Image();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user