scrollspy documentation bug? -- scrollspy requires that the spied anchor be visible
Created by: fczuardi
Sometimes, if the nav items links to page anchors that are set like:
<a id="anchor-id"></a>
The code will work on firefox but not on webkit (chrome and cordova apps for example).
The reason is because scrollspy use a jQuery is.(':visible') type of check, see https://github.com/twbs/bootstrap/commit/5a38a5775f8a3c58c09df0a0f3afc058c820c238
The workaround is to set display block on your anchors, like so:
<a id="anchor-id" style="display:block;"></a>