|
@@ -152,6 +152,7 @@ export function autoGrowTextArea(dom: HTMLTextAreaElement) {
|
|
|
const width = getDomContentWidth(dom);
|
|
|
measureDom.style.width = width + "px";
|
|
|
measureDom.innerText = dom.value !== "" ? dom.value : "1";
|
|
|
+ measureDom.style.fontSize = dom.style.fontSize;
|
|
|
const endWithEmptyLine = dom.value.endsWith("\n");
|
|
|
const height = parseFloat(window.getComputedStyle(measureDom).height);
|
|
|
const singleLineHeight = parseFloat(
|