Commit 742766ee authored by Florian ROY's avatar Florian ROY
Browse files

#24 Problem scroll when use next and previous

parent 91926e12
Pipeline #6405 passed with stages
in 2 minutes and 53 seconds
......@@ -21,8 +21,8 @@ jQuery.docviewHighlight = {
$results.removeClass(currentClass);
if ($current.length) {
$current.addClass(currentClass);
position = $current.offset().top - (offsetTop);
window.scrollTo(0, position);
position = $current.offset().top - $current.offsetParent().offset().top;
document.getElementById('docview_content').scrollTop = position;
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment