You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on the docs and looking at the source on the docs webpage, I tried to create the most simple example and I am running into a problem where the TOC is not tracking the links and activating/deactivating the current heading that is visible on screen: http://plnkr.co/edit/NFPJEZX45jElRDqCC6pP?p=preview
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
Ok, so after much debugging, the reason is Chrome. Perhaps adding the following comment to the docs may save others HOURS of time.
You MUST put: <!DOCTYPE html>
at the top of your html document otherwise Chrome will report the visible height of the window to be the same as the document height. This causes the plugin to think it is at the bottom of the document and so shows only the last TOC menu item as being permanently active.
I have updated the above plunkr sample to have the full set of minimal requirements.
Based on the docs and looking at the source on the docs webpage, I tried to create the most simple example and I am running into a problem where the TOC is not tracking the links and activating/deactivating the current heading that is visible on screen:
http://plnkr.co/edit/NFPJEZX45jElRDqCC6pP?p=preview
What am I doing wrong?
The text was updated successfully, but these errors were encountered: