Merge pull request #201 from mkaatman/patch-1

Update scripts/setup.js
This commit is contained in:
Phil Sturgeon
2012-11-29 04:50:44 -08:00

View File

@@ -55,6 +55,7 @@
var eTop = $(e).offset().top;
var eBottom = eTop + $(e).height();
var id=e.id;
id = id.replace("_title", "");
if (eTop >= viewTop) {
//if we are passed the view and no heading was highlighted yet, store previous one as fallback