mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-20 03:13:30 +00:00
bugfix: image widget's was mis-aligned when node has multiline widget
This commit is contained in:
parent
c2d407b0f7
commit
d43cff2105
@ -368,7 +368,11 @@ export class ComfyApp {
|
|||||||
shiftY = w.last_y;
|
shiftY = w.last_y;
|
||||||
if (w.computeSize) {
|
if (w.computeSize) {
|
||||||
shiftY += w.computeSize()[1] + 4;
|
shiftY += w.computeSize()[1] + 4;
|
||||||
} else {
|
}
|
||||||
|
else if(w.computedHeight) {
|
||||||
|
shiftY += w.computedHeight;
|
||||||
|
}
|
||||||
|
else {
|
||||||
shiftY += LiteGraph.NODE_WIDGET_HEIGHT + 4;
|
shiftY += LiteGraph.NODE_WIDGET_HEIGHT + 4;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -129,6 +129,7 @@ function addMultilineWidget(node, name, opts, app) {
|
|||||||
w.y = y;
|
w.y = y;
|
||||||
if (w.type === "customtext") {
|
if (w.type === "customtext") {
|
||||||
y += freeSpace;
|
y += freeSpace;
|
||||||
|
w.computedHeight = freeSpace - multi.length*4;
|
||||||
} else if (w.computeSize) {
|
} else if (w.computeSize) {
|
||||||
y += w.computeSize()[1] + 4;
|
y += w.computeSize()[1] + 4;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user