editor: force height update on input (prevent scrollbar to hide text)
This commit is contained in:
parent
c7d530f1b9
commit
db79ef5a0a
1 changed files with 1 additions and 0 deletions
|
|
@ -71,6 +71,7 @@ var editObject = function(container, data, refresh){
|
|||
|
||||
input = $(`<textarea class="input" data-type="${type}" title="${i}" rows="${value.split('\n').length}">${value}</textarea>`)
|
||||
input.on('input focus', function(){
|
||||
this.setAttribute('rows',0)
|
||||
this.setAttribute('rows',input.val().split('\n').length)
|
||||
})
|
||||
input.on('keydown', (e)=>{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue