# Undesired scrolling on updateState

**URL:** https://discuss.prosemirror.net/t/undesired-scrolling-on-updatestate/2066
**Category:** Uncategorized
**Created:** [July 6, 2019, 4:23pm UTC](https://discuss.prosemirror.net/t/undesired-scrolling-on-updatestate/2066 "2019-07-06T16:23:48Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![adventurebeard](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/adventurebeard/32/3449_2.png) [@adventurebeard](https://discuss.prosemirror.net/u/adventurebeard)
#### Post date: [September 17, 2020, 5:49pm UTC](https://discuss.prosemirror.net/t/undesired-scrolling-on-updatestate/2066/3 "2020-09-17T17:49:20Z")

</div>

Sorry I abandoned this thread! To anyone Googling for answers, this problem has shown up over a few generations of my application, and it’s always due to not properly managing the height of my containing divs. I imagine PM then gets an incorrect report of the height or visibility of the document, resulting in the aforementioned scroll behavior.

Sorry I don’t have anything more scientific; fixing it usually involves going through each parent container, making sure its actual height matches the visual height. More often than not, a containing div would be shooting off the end of the screen.

---

_[View the full topic](https://discuss.prosemirror.net/t/undesired-scrolling-on-updatestate/2066)._
