Files
shootthesound-ComfyUI-Angelo/web
shootthesound bf71979f27 fix: keep preview DOM widget at full node width
LiteGraph sizes the preview's wrapper element to (widget.width ?? node.width) - 2*margin. The ?? node.width fallback gives full width only while widget.width is unset; LiteGraph's widget-draw path then pins widget.width to the narrow slot/title content-minimum (~340, since all of Angelo's real widgets are hidden). A node dragged wider showed a wide frame but the preview collapsed to the left, and any relayout (e.g. clicking a control) re-pinned it.

Define widget.width as a getter that always returns the live node.size[0], with a no-op setter so LiteGraph can't re-pin it narrow. The wrapper now stays at full node width and the UI no longer snaps left on click.
2026-05-25 23:49:37 +01:00
..