From b96c10ab8d81157307673ae23d5f3acc4bf1824f Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 7 Dec 2025 02:05:12 +0100 Subject: [PATCH] fix: make cell selector's heigh grow when adding a new line --- webapp/IronCalc/src/components/Editor/util.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webapp/IronCalc/src/components/Editor/util.tsx b/webapp/IronCalc/src/components/Editor/util.tsx index 636743f..d67611e 100644 --- a/webapp/IronCalc/src/components/Editor/util.tsx +++ b/webapp/IronCalc/src/components/Editor/util.tsx @@ -194,6 +194,10 @@ function getFormulaHTML( } else { html = [{text}]; } + // Add a trailing character if text ends with newline to ensure selector's height grows + if (text.endsWith("\n")) { + html.push({"\n"}); + } return { html, activeRanges }; }