MCPcopy Create free account
hub / github.com/pacexy/flow / documentHeight

Function documentHeight

packages/epubjs/src/utils/core.js:54–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52 * @memberof Core
53 */
54export function documentHeight() {
55 return Math.max(
56 document.documentElement.clientHeight,
57 document.body.scrollHeight,
58 document.documentElement.scrollHeight,
59 document.body.offsetHeight,
60 document.documentElement.offsetHeight,
61 )
62}
63
64/**
65 * Checks if a node is an element

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected