mirror of
https://github.com/ArdeniusAI/ComfyUI-cpu
synced 2026-11-19 01:00:36 +03:00
Merge branch 'bugfix/widget_size_conflict' of https://github.com/ltdrdata/ComfyUI
This commit is contained in:
commit
ee62b4ecc2
2 files changed
+6
-2
No files matched your search
@@ -365,6 +365,10 @@ export class ComfyApp {
|
||||
}
|
||||
|
||||
node.prototype.setSizeForImage = function () {
|
||||
if (this.inputHeight) {
|
||||
this.setSize(this.size);
|
||||
return;
|
||||
}
|
||||
const minHeight = getImageTop(this) + 220;
|
||||
if (this.size[1] < minHeight) {
|
||||
this.setSize([this.size[0], minHeight]);
|
||||
|
||||
@@ -115,12 +115,12 @@ function addMultilineWidget(node, name, opts, app) {
|
||||
|
||||
// See how large each text input can be
|
||||
freeSpace -= widgetHeight;
|
||||
freeSpace /= multi.length;
|
||||
freeSpace /= multi.length + (!!node.imgs?.length);
|
||||
|
||||
if (freeSpace < MIN_SIZE) {
|
||||
// There isnt enough space for all the widgets, increase the size of the node
|
||||
freeSpace = MIN_SIZE;
|
||||
node.size[1] = y + widgetHeight + freeSpace * multi.length;
|
||||
node.size[1] = y + widgetHeight + freeSpace * (multi.length + (!!node.imgs?.length));
|
||||
node.graph.setDirtyCanvas(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user