Skip to content
Snippets Groups Projects
Commit c7b802ae authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[lint addon] Don't try to display tooltip above top of document

parent e370099b
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ CodeMirror.validate = (function() {
function position(e) {
if (!tt.parentNode) return CodeMirror.off(document, "mousemove", position);
tt.style.top = (e.clientY - tt.offsetHeight - 5) + "px";
tt.style.top = Math.max(0, e.clientY - tt.offsetHeight - 5) + "px";
tt.style.left = (e.clientX + 5) + "px";
}
CodeMirror.on(document, "mousemove", position);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment