From 6e492d1fd98a1694f92b009d04ac9c1715dbf68d Mon Sep 17 00:00:00 2001 From: Furkan Sezis Date: Wed, 13 Sep 2023 15:44:57 +0300 Subject: [PATCH] Fixed #4269 -Textarea autoResize issue --- components/lib/textarea/Textarea.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/lib/textarea/Textarea.vue b/components/lib/textarea/Textarea.vue index df295e998..18c662491 100755 --- a/components/lib/textarea/Textarea.vue +++ b/components/lib/textarea/Textarea.vue @@ -24,7 +24,8 @@ export default { const style = window.getComputedStyle(this.$el); this.$el.style.height = 'auto'; - this.$el.style.height = `calc(${style.borderTopWidth} + ${style.borderBottomWidth} + ${this.$el.scrollHeight}px)`; + + this.$el.style.height = this.$el.scrollHeight + 'px'; if (parseFloat(this.$el.style.height) >= parseFloat(this.$el.style.maxHeight)) { this.$el.style.overflowY = 'scroll';