##// END OF EJS Templates
autoscroll: always scroll into view before dispatching topic
ergo -
r374:c00c4d02 default
parent child Browse files
Show More
@@ -385,13 +385,12 b' function offsetScroll(element, offset){'
385 if (lineno.length > 0){
385 if (lineno.length > 0){
386 var tr = lineno.parents('tr.line');
386 var tr = lineno.parents('tr.line');
387 tr.addClass('selected');
387 tr.addClass('selected');
388
389 tr[0].scrollIntoView();
390
388 $.Topic('/ui/plugins/code/anchor_focus').prepare({
391 $.Topic('/ui/plugins/code/anchor_focus').prepare({
389 tr:tr,
392 tr:tr,
390 remainder:remainder});
393 remainder:remainder});
391
392 if (!remainder){
393 tr[0].scrollIntoView();
394 }
395 }
394 }
396 }
395 }
397 }
396 }
General Comments 0
You need to be logged in to leave comments. Login now