Update scripts/setup.js

Fix for https://github.com/codeguy/php-the-right-way/issues/194 which was caused by d5d5d0725b
This commit is contained in:
mkaatman
2012-11-14 23:20:29 -06:00
parent 93ee96356d
commit a3b455f183

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