Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/webodf/ViewerJS
/ scrollIntoView
Function
scrollIntoView
PDFViewerPlugin.js:80–82 ·
view source on GitHub ↗
(elem)
Source
from the content-addressed store, hash-verified
78
createdPageCount = 0;
79
80
function
scrollIntoView(elem) {
81
elem.parentNode.scrollTop = elem.offsetTop;
82
}
83
84
function
isScrolledIntoView(elem) {
85
if
(elem.style.display ===
"none"
) {
Callers
1
PDFViewerPlugin
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected