You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After turning off tooltipFollowsMouse, and testing with setting an annotation, an error is thrown on hover. The issue is here:
var gutterElement = gutter.$cells[editor.session.documentToScreenRow(row, 0)].element;
In debugging, it looks like editor.session.documentToScreenRow(row, 0) returns the actual line position of the annotation. However, gutter.$cells appears to be an array of the "on-screen" cells. So, in my case, gutter.$cells stops at 40, and the returned value from documentToScreenRow was 389. Therefore the error thrown is: "Cannot read property 'element' of undefined".
The text was updated successfully, but these errors were encountered:
After turning off
tooltipFollowsMouse
, and testing with setting an annotation, an error is thrown on hover. The issue is here:In debugging, it looks like
editor.session.documentToScreenRow(row, 0)
returns the actual line position of the annotation. However,gutter.$cells
appears to be an array of the "on-screen" cells. So, in my case,gutter.$cells
stops at 40, and the returned value fromdocumentToScreenRow
was 389. Therefore the error thrown is: "Cannot read property 'element' of undefined".The text was updated successfully, but these errors were encountered: