very important fix
This commit is contained in:
parent
0d6a9f5a62
commit
e3ceae0989
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ const PostStatusForm = {
|
||||||
* height to 'auto' which makes textarea tiny again, so that scrollHeight
|
* height to 'auto' which makes textarea tiny again, so that scrollHeight
|
||||||
* will match text height again. HOWEVER, shrinking textarea can screw with
|
* will match text height again. HOWEVER, shrinking textarea can screw with
|
||||||
* the scroll since there might be not enough padding around root to even
|
* 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
|
* so we check current scroll position before shrinking and then restore it
|
||||||
* with needed delta.
|
* with needed delta.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue