mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 10:42:44 +00:00
[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:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user