-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
pinnedThis is to pinned the PR/Issue in order to keep it openThis is to pinned the PR/Issue in order to keep it openpr welcome
Description
When clicking documentation links, using a header with a fixed position, the document scrolls underneath the header. What do you think of allowing this offset as a new config value?
inside src/core/config.js:14
windowYOffset: 0, // some user defined offset is allowed to account for fixed headers
inside export function initEvent(vm)
at src/core/event/index.js:17
setWindowYOffset(vm.config.windowYOffset)
now fix up the scroll code a bit in src/core/event/scroll.js:23
end: el.getBoundingClientRect().top + window.pageYOffset - windowYOffset,
saioacoder and AnonymousArthursaioacoder
Metadata
Metadata
Assignees
Labels
pinnedThis is to pinned the PR/Issue in order to keep it openThis is to pinned the PR/Issue in order to keep it openpr welcome