##// END OF EJS Templates
fix tooltip location...
Min RK -
Show More
@@ -284,18 +284,21 b' define(['
284 284 var xinit = (head.left+anchor.left)/2;
285 285 var xinter = o.left + (xinit - o.left) / w * (w - 450);
286 286 var posarrowleft = xinit - xinter;
287
288 var left = xinter - 30 + 'px';
289 var top = (head.bottom + 10 - $("#header").height()) + 'px';
287 290
288 291 if (this._hidden === false) {
289 292 this.tooltip.animate({
290 'left': xinter - 30 + 'px',
291 'top': (head.bottom + 10) + 'px'
293 left: left,
294 top: top
292 295 });
293 296 } else {
294 297 this.tooltip.css({
295 'left': xinter - 30 + 'px'
298 left: left
296 299 });
297 300 this.tooltip.css({
298 'top': (head.bottom + 10) + 'px'
301 top: top
299 302 });
300 303 }
301 304 this.arrow.animate({
@@ -293,6 +293,8 b' data-notebook-path="{{notebook_path}}"'
293 293 </div>
294 294 </div>
295 295
296 <div id='tooltip' class='ipython_tooltip' style='display:none'></div>
297
296 298 {% endblock %}
297 299
298 300 {% block after_site %}
@@ -304,8 +306,6 b' data-notebook-path="{{notebook_path}}"'
304 306 <div id='pager-button-area'></div>
305 307 </div>
306 308
307 <div id='tooltip' class='ipython_tooltip' style='display:none'></div>
308
309 309 {% endblock %}
310 310
311 311 {% block script %}
General Comments 0
You need to be logged in to leave comments. Login now