Skip to content

Commit

Permalink
fix new line bug on textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
baxiry committed Aug 25, 2024
1 parent f2e7c6c commit 6661884
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions static/shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,9 @@ function calcHeight(value) {
}

if (numberOfLineBreaks > 24) {
numberOfLineBreaks = 24
//numberOfLineBreaks = 24
}


//console.log("lines:",numberOfLineBreaks)
// min-height + lines x line-height + padding + border
let newHeight = 20 + numberOfLineBreaks * 20 + 12 + 2;

Expand Down

0 comments on commit 6661884

Please sign in to comment.