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. #64

Open sjb933 opened 9 years ago

sjb933 commented 9 years ago

Moving pull request to dev branch per request. 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.

agez commented 9 years ago

I can confirm that the pull request works. It would be nice if it could be merged in the dev or master version.