Former-commit-id: c41fe7b110
This commit is contained in:
Henrique Dias committed 2017-01-02 18:49:13 +00:00
1 parent fa5387b141
commit 57dd01cb37
3 files changed
+105 -10

No files matched your search

+3 -2
View File
@@ -4,8 +4,9 @@ var editor = {};
editor.textareaAutoGrow = function() {
let autogrow = function() {
this.style.height = '5px';
this.style.height = this.scrollHeight + 'px';
console.log(this.style.height)
this.style.height = 'auto';
this.style.height = (this.scrollHeight) + 'px';
}
let textareas = document.getElementsByTagName('textarea');