Fix last line having slightly cut-off low-hanging parts of characters

This commit is contained in:
Henry Jameson 2020-08-18 00:52:51 +03:00
parent ecbbec7b97
commit a6223cec0c
1 changed files with 1 additions and 1 deletions

View File

@ -481,7 +481,7 @@ const PostStatusForm = {
// BEGIN content size update
target.style.height = 'auto'
const heightWithoutPadding = Math.floor(target.scrollHeight - vertPadding)
const heightWithoutPadding = Math.ceil(target.scrollHeight - vertPadding) + 1
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.