gfranko / jquery.tocify.js

A jQuery Table of Contents plugin that can be themed with Twitter Bootstrap or jQueryUI.
http://gregfranko.com/jquery.tocify.js/
MIT License
928 stars 216 forks source link

Fixed initial page extending on load. #63

Closed sjb933 closed 9 years ago

sjb933 commented 9 years ago

There was a bug with the extending page option, exemplified here: http://gregfranko.com/jquery.tocify.js/. On initial page load, if you hit the bottom link in the menu, 'Donation', you will see that the page doesn't actually scroll far enough and the extra padding div will not be added until the user has scrolled that far down. I've corrected this by removing the concept of the removing the concept of the extendPageOffset and added the padding div on load.

I've modified the unminimized JS only, this still needs to be recompiled.

gfranko commented 9 years ago

Could send this PR to the dev branch?

sjb933 commented 9 years ago

Closing this pull request - I added another pull request in the dev branch, per request.