Reproducible Environment
- CodeMirror: v5.52.2
- Browsers
- Chrome: 80.0.3987.163
- Firefox: 75.0
- Safari: 13.1 (15609.1.20.111.8)
- OS
Reproduction
https://jsfiddle.net/ktsn/aur7wt3L/14/
-
Open the page.
-
Scroll the editor slowly for the bottom.
-
The text after ************************************* is not rendered even though it is in viewport.

-
Scroll further and the text will be rendered.
Expected behavior
The text should be rendered at step 3 where the text is in viewport.
Details
This issue happens when we:
- set
lineWrapping: true,
- had set text in narrower width and
- set width wider and call
refresh() after 2.
Looks like height is calculated for each line on 2 and the value is too large as width is small at the moment, then even though we refresh() on 3, the height of lines are not updated.