##// END OF EJS Templates
Updating tooltip.js to work with CM3.
Brian E. Granger -
Show More
@@ -293,9 +293,9 b' var IPython = (function (IPython) {'
293 var anchor = this.code_mirror.cursorCoords(false);
293 var anchor = this.code_mirror.cursorCoords(false);
294 var head = this.code_mirror.cursorCoords(true);
294 var head = this.code_mirror.cursorCoords(true);
295 var pos = {};
295 var pos = {};
296 pos.y = head.y
296 pos.y = head.top
297 pos.yBot = head.yBot
297 pos.yBot = head.bottom
298 pos.x = (head.x+anchor.x)/2;
298 pos.x = (head.left+anchor.left)/2;
299
299
300 var xinit = pos.x;
300 var xinit = pos.x;
301 var xinter = o.left + (xinit - o.left) / w * (w - 450);
301 var xinter = o.left + (xinit - o.left) / w * (w - 450);
General Comments 0
You need to be logged in to leave comments. Login now