rstacruz / flatdoc

Build sites fast from Markdown
http://ricostacruz.com/flatdoc
2.68k stars 263 forks source link

Links are not scrolled correctly. #70

Open blynkkk opened 8 years ago

blynkkk commented 8 years ago

Thanks for the great documentation tool! We love it a lot!

We use it at http://docs.blynk.cc But whenever we send our users a link to a specific section, the content is not scrolled correctly. e.g. http://docs.blynk.cc/#blynk-server is scrolled to a different section.

I assume that the issue is in using images that affect the page height. Is there a way to fix it?

Thank you

ecastillo commented 8 years ago

The issue I see is that when you click on a section link in the table of contents, it doesn't always highlight the right section, even though it scrolls to the right section. It's confusing because it looks like you clicked the wrong link. You can see it happen in the Flatdoc documentation. For example, clicking "JavaScript hooks" takes you to the right section, but highlights "Inspirations." (if your screen is tall enough)