diff --git a/src/renderer/extensions/vueNodes/widgets/components/WidgetTextarea.vue b/src/renderer/extensions/vueNodes/widgets/components/WidgetTextarea.vue index 4eba690342..4c8006f86b 100644 --- a/src/renderer/extensions/vueNodes/widgets/components/WidgetTextarea.vue +++ b/src/renderer/extensions/vueNodes/widgets/components/WidgetTextarea.vue @@ -59,5 +59,7 @@ const filteredProps = computed(() => const displayName = computed(() => widget.label || widget.name) const id = useId() -const isReadOnly = computed(() => widget.options?.read_only ?? false) +const isReadOnly = computed( + () => widget.options?.read_only ?? widget.options?.disabled ?? false +) diff --git a/src/scripts/app.ts b/src/scripts/app.ts index f236a04975..6fc3e74f1f 100644 --- a/src/scripts/app.ts +++ b/src/scripts/app.ts @@ -555,7 +555,7 @@ export class ComfyApp { try { workspace.spinner = true if (fileMaybe instanceof File) { - await this.handleFile(fileMaybe, 'file_drop') + await this.handleFile(fileMaybe, 'file_drop') } if (fileMaybe instanceof FileList) { @@ -1575,7 +1575,6 @@ export class ComfyApp { this.showErrorOnFileLoad(file) } - /** * Loads multiple files, connects to a batch node, and selects them * @param {FileList} fileList @@ -1602,19 +1601,19 @@ export class ComfyApp { */ positionBatchNodes(nodes: LGraphNode[], batchNode: LGraphNode): void { const [x, y, width] = nodes[0].getBounding() - batchNode.pos = [ x + width + 100, y + 30 ] + batchNode.pos = [x + width + 100, y + 30] // Retrieving Node Height is inconsistent - let height = 0; + let height = 0 if (nodes[0].type === 'LoadImage') { height = 344 } nodes.forEach((node, index) => { if (index > 0) { - node.pos = [ x, y + (height * index) + (25 * (index + 1)) ] + node.pos = [x, y + height * index + 25 * (index + 1)] } - }); + }) this.canvas.graph?.change() }