twitter/bootstrap — pull request #6248 by jimwebb (2012-12-12 17:20:29+00:00)
Title: scrollSpy - only add parent scrollTop to offset if parent isn't the brow...

This closed issue: https://github.com/twitter/bootstrap/issues/6013 resulted in this pull request: https://github.com/twitter/bootstrap/pull/6118 which has created the following new bug:

If scrollspy is invoked on the window (or

), but the page is already scrolled on load, the browser's scroll is added to the offset, which breaks the scrollspy behavior.

Demo:
http://jsfiddle.net/FH7Q3/7/