From 55aeb5b4b27ec825835c066e855a272bb5b57406 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 15 Apr 2018 18:22:56 +0300 Subject: [PATCH] fix --- src/components/post_status_form/post_status_form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 7d1886a6..e6742580 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -239,8 +239,8 @@ const PostStatusForm = { e.dataTransfer.dropEffect = 'copy' }, resize (e) { - const vertPadding = window.getComputedStyle(e.target)['padding-top'] + - window.getComputedStyle(e.target)['padding-bottom'] + const vertPadding = Number(window.getComputedStyle(e.target)['padding-top'].substr(0, 1)) + + Number(window.getComputedStyle(e.target)['padding-bottom'].substr(0, 1)) e.target.style.height = 'auto' e.target.style.height = `${e.target.scrollHeight - vertPadding}px` if (e.target.value === '') {