mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-25 14:11:02 +00:00
fix dom position calculation in pdf viewer
This commit is contained in:
parent
53e9086094
commit
591498a056
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue