mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
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:
parent
f81444ee08
commit
4c841c96a6
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue