Commit 53cebeca authored by Sean Roberts's avatar Sean Roberts Committed by GitHub

Merge pull request #321 from hypothesis/fix-scroll-to-new-annotation

Fix scrolling to new annotations
parents 449d4cfc 09086090
......@@ -79,7 +79,7 @@ function ThreadListController($scope, VirtualThreadList) {
// Note: This assumes that the element occupies the entire height of the
// containing document. It would be preferable if only the contents of the
// <thread-list> itself scrolled.
var maxYOffset = document.body.clientHeight - window.innerHeight;
var maxYOffset = document.body.scrollHeight - window.innerHeight;
return Math.min(maxYOffset, visibleThreads.yOffsetOf(id));
}
......
Markdown is supported
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