aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2020-08-18 23:50:23 +0300
committerHenry Jameson <me@hjkos.com>2020-08-18 23:50:23 +0300
commit7de78b1401cf8454026afd0a2ba2578356173bcd (patch)
treef2d08e9ba62aef4d7c96068d83f1289f4db75202 /src
parenta6223cec0c6bb037f1e64a3bc7dfd7fca354faa1 (diff)
revert change to form resize logic
Diffstat (limited to 'src')
-rw-r--r--src/components/post_status_form/post_status_form.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js
index 66252bda..e7094bec 100644
--- a/src/components/post_status_form/post_status_form.js
+++ b/src/components/post_status_form/post_status_form.js
@@ -481,7 +481,7 @@ const PostStatusForm = {
// BEGIN content size update
target.style.height = 'auto'
- const heightWithoutPadding = Math.ceil(target.scrollHeight - vertPadding) + 1
+ const heightWithoutPadding = Math.floor(target.scrollHeight - vertPadding)
let newHeight = this.maxHeight ? Math.min(heightWithoutPadding, this.maxHeight) : heightWithoutPadding
// This is a bit of a hack to combat target.scrollHeight being different on every other input
// on some browsers for whatever reason. Don't change the height if difference is 1px or less.