From d6a7b062f47759a191d2fcfc5ea4e0c86b4232c0 Mon Sep 17 00:00:00 2001 From: Pouzor Date: Thu, 9 Apr 2026 14:34:01 +0200 Subject: [PATCH] fix: clear node height when properties change to prevent overflow outside border --- frontend/src/stores/canvasStore.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/stores/canvasStore.ts b/frontend/src/stores/canvasStore.ts index 116d60f..9df76ad 100644 --- a/frontend/src/stores/canvasStore.ts +++ b/frontend/src/stores/canvasStore.ts @@ -191,6 +191,10 @@ export const useCanvasStore = create((set) => ({ let nodes = state.nodes.map((n) => { if (n.id !== id) return n const updated: Node = { ...n, data: { ...n.data, ...data } } + // When properties change, clear stored height so the node auto-sizes to fit new content + if ('properties' in data && n.data.type !== 'proxmox' && n.data.type !== 'groupRect') { + updated.height = undefined + } if ('parent_id' in data) { const newParentId = data.parent_id ?? undefined if (!newParentId && n.parentId) {