Fixed #4269 -Textarea autoResize issue
parent
86e0cbd310
commit
6e492d1fd9
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue