Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tooltipFollowsMouse: false throws error #2721

Closed
matthew-dean opened this issue Oct 24, 2015 · 1 comment
Closed

tooltipFollowsMouse: false throws error #2721

matthew-dean opened this issue Oct 24, 2015 · 1 comment

Comments

@matthew-dean
Copy link

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".

@matthew-dean
Copy link
Author

Thanks @nightwing!

doog33k pushed a commit to doog33k/ace that referenced this issue Feb 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant