While calling Codemirror.hint inside “inputRead” event, the content assist DOM element
goes out of the viewport.
After debugging I found that cm.display.viewOffset becomes 0, during the inputRead event, which in turn makes the yOffset variable to become more than the cursor position.
You’re pointing at the intoCoordSystem function, I guess. How are you causing that to run when inputRead fires? Could you provide the full code needed to show the issue?
The above code shifts the <ul> element of the content assist outside the viewport.The issue was temporarily corrected by adding a setTimeout inside “inputRead” event.