jgallen23 / toc

Table of Contents Plugin
http://projects.jga.me/toc/
MIT License
531 stars 111 forks source link

If desired, add bottom padding to last selector #40

Closed gjunkie closed 10 years ago

gjunkie commented 10 years ago

This is checking if the height of the position of the last selector plus the content below it is less than the window height. If it is, it adds the difference as padding to a desired elem.