Skip to content

Commit

Permalink
Fix FXIOS-10286 - Adjust textarea row height based on font size (#22623)
Browse files Browse the repository at this point in the history
fix: adjust textarea row height based on font size
  • Loading branch information
issammani authored Oct 21, 2024
1 parent 0a7ce9e commit fa7ef1c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ const init = (record, l10nStrings, isDarkTheme = false) => {
);

document.querySelectorAll("textarea").forEach((textarea) => {
autoResizeTextarea(textarea);
const rowHeight = document.querySelector("input").clientHeight;
autoResizeTextarea(textarea, rowHeight);
textarea.addEventListener("input", () => autoResizeTextarea(textarea));
});

Expand Down

0 comments on commit fa7ef1c

Please sign in to comment.