This commit is contained in:
Henry Jameson 2018-04-15 18:22:56 +03:00
parent e93ce99198
commit 55aeb5b4b2

View file

@ -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 === '') {