Fix InputBox resize bug on newer browsers

Apparently I forgot to add "px" a few thousand years ago and now this behaviour is broken. Big sad.
This commit is contained in:
celestora 2022-01-30 14:12:57 +02:00 committed by GitHub
parent f81444ee08
commit 4c841c96a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -110,7 +110,7 @@ function setupWallPostInputHandlers(id) {
var textArea = e.target;
textArea.style.height = "5px";
var newHeight = textArea.scrollHeight;
textArea.style.height = newHeight + boost;
textArea.style.height = newHeight + boost + "px";
return;
// revert to original size if it is larger (possibly changed by user)