jgallen23 / toc

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

option to add spacing on the bottom of the page so that when clicking on an item, it always shows up at the top #38

Open jgallen23 opened 10 years ago

jgallen23 commented 10 years ago

could work something like:

{ //options
  addBottomPadding: false | selector
}

if selector passed in, that's the element that gets the bottom padding.

jgallen23 commented 10 years ago

question is, should it add on load or on click? on load would be better for the active state while scrolling, but then it might get funky with a resize.

@dawnerd thoughts?

dawnerd commented 10 years ago

Leaning towards on click. If we do it that way, we're only adding the padding if we really need to.