Closed
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,