fix dom position calculation in pdf viewer

This commit is contained in:
Brian Gough 2015-01-20 16:20:12 +00:00
parent 53e9086094
commit 591498a056

View file

@ -245,8 +245,8 @@ define [
scope.document.renderPages(pages)
getVisiblePages = () ->
top = element[0].offsetTop
bottom = top + element[0].clientHeight
top = element[0].scrollTop;
bottom = top + element[0].clientHeight;
isVisible = (pageElement) ->
pageTop = pageElement.offsetTop
pageBottom = pageTop + pageElement.clientHeight