Fix bug in viewport updating for content-sized editors
Fix bug in viewport updating for content-sized editors

Closes #6181

wingify/CodeMirror,pabloferz/CodeMirror,nightwing/CodeMirror,wingify/CodeMirror,codio/CodeMirror,hackmdio/CodeMirror,nightwing/CodeMirror,codio/CodeMirror,codio/CodeMirror,pabloferz/CodeMirror,hackmdio/CodeMirror,wingify/CodeMirror,dperetti/CodeMirror,pabloferz/CodeMirror,nightwing/CodeMirror,dperetti/CodeMirror,hackmdio/CodeMirror,dperetti/CodeMirror