[view] give input box a little extra buffer height to account for padding, fixes #1009
This commit is contained in:
parent
11a0ba27e9
commit
2af4a83fd1
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ function joinUrlSegments(base, query) {
|
||||||
function autosize(el) {
|
function autosize(el) {
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
if(el.offsetHeight < el.scrollHeight) {
|
if(el.offsetHeight < el.scrollHeight) {
|
||||||
el.style.height = el.scrollHeight + 'px';
|
el.style.height = `calc(${el.scrollHeight}px + 0.5em)`;
|
||||||
el.style.width = el.offsetWidth + 'px';
|
el.style.width = el.offsetWidth + 'px';
|
||||||
}
|
}
|
||||||
}, 0);
|
}, 0);
|
||||||
|
|
Reference in a new issue