mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Adjust pageoffset to update the "Edit On GitHub" link slightly before the user scrolls the relevant subsection
This commit is contained in:
parent
53d4a6eebe
commit
b3b545c289
1 changed files with 1 additions and 1 deletions
|
@ -430,7 +430,7 @@ function updateSource(e){
|
|||
if (!document.getElementsByClassName) return;
|
||||
var t = getEventTarget(e),
|
||||
nodes = document.getElementsByClassName('sourcefile'),
|
||||
pageoffset = getPageYOffset(),
|
||||
pageoffset = Math.max(0, getPageYOffset() + 100),
|
||||
windowy = getWindowY(),
|
||||
fallback = nodes[0],
|
||||
first = [fallback, getTop(fallback)],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue