Open mckaygerhard opened 10 months ago
@arnaudsm i forgotten.. this is happened due the navbar.. so the calculated space must be the same as the navbar.. so window.innerHeight / 8
is just an example but must be the space reserved by the navbar (container id padding)
i dont have an agnostic compatible way or idea how to solve this.. cos always will depend of the current style of the navbar of components included..
That makes sense, but I would prefer a scroll offset parameter in pixels, to make it more customisable
That makes sense, but I would prefer a scroll offset parameter in pixels, to make it more customisable
yeah i was talking about something auto detected.. but seems it could not be possible.. because we cannot guess the pixeled navbar from the JavaScript code.. unless we injected from JavaScript
after many months .. i dont have the skills for this bug.. do you find some solution? @arnaudsm ?
Sorry I'm fairly busy, will revisit soon !
The current anchor reference implementation at #42 forced to have a hardcoded CSS trick see the video how on any reference the title is "cuttring off" by the scroll
i was thinking in made a workaroun around scrollIntoView using scrollTo that permits to specify an offset, using a config variable if user wants.. with a default value set, i can made a pull request for if you wants..