File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
shiny/www/py-shiny/text-area Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ function update_height(target: HTMLTextAreaElement) {
4949 if ( target . scrollHeight > 0 ) {
5050 // Automatically resize the textarea to fit its content.
5151 target . style . height = "auto" ;
52- target . style . height = target . scrollHeight + "px" ;
52+ target . style . height = target . scrollHeight + 2 + "px" ;
5353 } else {
5454 // The textarea is not visible on the page, therefore it has a 0 scroll height.
5555
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ function callUpdateHeightWhenTargetIsVisible(target) {
2727function update_height ( target ) {
2828 if ( target . scrollHeight > 0 ) {
2929 target . style . height = "auto" ;
30- target . style . height = target . scrollHeight + "px" ;
30+ target . style . height = target . scrollHeight + 2 + "px" ;
3131 } else {
3232 callUpdateHeightWhenTargetIsVisible ( target ) ;
3333 }
You can’t perform that action at this time.
0 commit comments