mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 06:40:48 +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) {
|
||||
// Position the image somewhere sensible
|
||||
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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user