From 7de78b1401cf8454026afd0a2ba2578356173bcd Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 18 Aug 2020 23:50:23 +0300 Subject: [PATCH] revert change to form resize logic --- src/components/post_status_form/post_status_form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 66252bdae9..e7094bec94 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.