I updated from cm/view 0.19.14 to 0.19.37 the other day. After the update, the selections are not re-drawn correctly, after I resize the window.
This only happens, if the resize does not directly affect the dimension of the
.cm-line DOM elements. If the
.cm-line measurements change due to resizing, the selection updates properly.
Why move the selection, if
.cm-line doesn’t change, you might ask. Well,
.cm-line has a fixed max-width inside a full-width
.cm-content and is centered via
margin: 0 auto;. So it moves every time the window width changes. I need to center at
.cm-line level and cannot center the whole
.cm-scroller elements due to several styling requirements.
This worked with a previous version of CM (based on cm/view 0.19.14). However, I can only speculate, tha issue lying inside cm/view, since I updated all CM dependencies.