jgallen23 / toc

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

Fixes wrong link being highlighted when page length changes dynamically #48

Closed klieber closed 4 years ago

klieber commented 9 years ago

I have a case where the content underneath each heading is added dynamically so have the heading offsets calculated only on initialization means they will be wrong. This change just calculates them on the fly.

adriweb commented 8 years ago

Nice, fixes the issue I was having :)