From 0172405bb65fb382b68ef2d8ac7378a3b960d8a0 Mon Sep 17 00:00:00 2001 From: Terry Jia Date: Sat, 24 Jan 2026 09:36:45 -0500 Subject: [PATCH] code improve --- src/renderer/extensions/vueNodes/components/LGraphNode.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/renderer/extensions/vueNodes/components/LGraphNode.vue b/src/renderer/extensions/vueNodes/components/LGraphNode.vue index e07a653ff..1b77a69fc 100644 --- a/src/renderer/extensions/vueNodes/components/LGraphNode.vue +++ b/src/renderer/extensions/vueNodes/components/LGraphNode.vue @@ -333,9 +333,10 @@ function initSizeStyles() { if (!el) return const suffix = isCollapsed.value ? '-x' : '' + const fullHeight = height + LiteGraph.NODE_TITLE_HEIGHT el.style.setProperty(`--node-width${suffix}`, `${width}px`) - el.style.setProperty(`--node-height${suffix}`, `${height}px`) + el.style.setProperty(`--node-height${suffix}`, `${fullHeight}px`) } /** @@ -361,8 +362,9 @@ function handleLayoutChange(change: { if (!el) return const newSize = size.value + const fullHeight = newSize.height + LiteGraph.NODE_TITLE_HEIGHT el.style.setProperty('--node-width', `${newSize.width}px`) - el.style.setProperty('--node-height', `${newSize.height}px`) + el.style.setProperty('--node-height', `${fullHeight}px`) } let unsubscribeLayoutChange: (() => void) | null = null