forked from AkkomaGang/akkoma-fe
fix
This commit is contained in:
parent
e93ce99198
commit
55aeb5b4b2
1 changed files with 2 additions and 2 deletions
|
@ -239,8 +239,8 @@ const PostStatusForm = {
|
||||||
e.dataTransfer.dropEffect = 'copy'
|
e.dataTransfer.dropEffect = 'copy'
|
||||||
},
|
},
|
||||||
resize (e) {
|
resize (e) {
|
||||||
const vertPadding = window.getComputedStyle(e.target)['padding-top'] +
|
const vertPadding = Number(window.getComputedStyle(e.target)['padding-top'].substr(0, 1)) +
|
||||||
window.getComputedStyle(e.target)['padding-bottom']
|
Number(window.getComputedStyle(e.target)['padding-bottom'].substr(0, 1))
|
||||||
e.target.style.height = 'auto'
|
e.target.style.height = 'auto'
|
||||||
e.target.style.height = `${e.target.scrollHeight - vertPadding}px`
|
e.target.style.height = `${e.target.scrollHeight - vertPadding}px`
|
||||||
if (e.target.value === '') {
|
if (e.target.value === '') {
|
||||||
|
|
Loading…
Reference in a new issue