[Bug] Fix link drop on multi-line string dom widget (#718)

Resolves https://github.com/Comfy-Org/ComfyUI_frontend/issues/2905
This commit is contained in:
Chenlei Hu
2025-03-07 10:28:07 -05:00
committed by GitHub
parent 20bdc47550
commit c21510773e

View File

@@ -1778,12 +1778,9 @@ export class LGraphCanvas implements ConnectionColorContext {
let widgetHeight: number | undefined
if (widget.computeSize) {
([widgetWidth, widgetHeight] = widget.computeSize(node.size[0]))
} else if (widget.computeLayoutSize) {
widgetWidth = widget.width
widgetHeight = widget.computedHeight
} else {
widgetWidth = widget.width || node.size[0]
widgetHeight = LiteGraph.NODE_WIDGET_HEIGHT
widgetHeight = widget.computedHeight || LiteGraph.NODE_WIDGET_HEIGHT
}
if (