Skip to content

Commit

Permalink
fixed textarea width bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mukulve committed Mar 22, 2024
1 parent f808f5d commit 1ab4b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TextareaCodeEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function TextareaCodeEditor() {
if (textarea && editor) {
textarea.style.height =
"calc( " + editor.offsetHeight + "px" + " + 25vh)";
textarea.style.width = editor.offsetWidth + "px";
textarea.style.width = "calc( " + editor.offsetWidth + "px" + " + 25vw)";
}
};

Expand Down

0 comments on commit 1ab4b88

Please sign in to comment.