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';