Replace position() with offset() in scrollspy.js

Regarding #7615: Chrome measured wrong positions when using position() - Using offset() instead fixes the issue.