From d19d120fc36500634379af741580a9d2d143c311 Mon Sep 17 00:00:00 2001 From: Chris Dumas Date: Thu, 15 Oct 2026 09:29:48 +0000 Subject: [PATCH] Avoid double-counting prompt editor height --- web/sequence_prompt_builder.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/web/sequence_prompt_builder.js b/web/sequence_prompt_builder.js index 06221e9..8bd7ec6 100644 --- a/web/sequence_prompt_builder.js +++ b/web/sequence_prompt_builder.js @@ -262,9 +262,6 @@ function configure(node) { // Measure the actual DOM panel instead of guessing from slot count. const panelHeight = Math.ceil(panel.getBoundingClientRect().height || panel.scrollHeight || 0); display.computeSize = (width) => [Math.max(420, Number(width) || 420), panelHeight + 2]; - const fittedWidth = Math.max(420, Number(node.size?.[0]) || 420); - const fittedHeight = Number(node.computeSize?.()[1]) || panelHeight + 180; - node.setSize?.([fittedWidth, fittedHeight]); }; const refresh = () => { state = readState(stateWidget, Number(countWidget.value) || 2, Number(secondsWidget.value) || 4); render(); setState(); }; countWidget.callback = ((previous) => function(...args) { const result = previous?.apply(this, args); refresh(); return result; })(countWidget.callback);