very important fix

This commit is contained in:
Henry Jameson 2019-09-25 19:32:30 +03:00
parent 0d6a9f5a62
commit e3ceae0989

View file

@ -316,7 +316,7 @@ const PostStatusForm = {
* height to 'auto' which makes textarea tiny again, so that scrollHeight
* will match text height again. HOWEVER, shrinking textarea can screw with
* the scroll since there might be not enough padding around root to even
* varrant a scroll, so it will jump to 0 and refuse to move anywhere,
* warrant a scroll, so it will jump to 0 and refuse to move anywhere,
* so we check current scroll position before shrinking and then restore it
* with needed delta.
*/