compensate offset on showimage

* adding widget caused misaligned offset
This commit is contained in:
Lt.Dr.Data 2023-03-21 17:10:50 +09:00
parent 969dffa8da
commit f8dd134d35

View File

@ -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();