Giter Club home page Giter Club logo

Comments (4)

rstacruz avatar rstacruz commented on September 25, 2024

The heroku app you posted doesn't exist anymore.

Anyway, the navbar can't always highlight the correct headline, unfortunately this is by design. It highlights whatever is in the sorta center of the viewport, which can sometimes be off around the end of a document, or when some sections are smaller than others. This doesn't have anything to do with images.

from flatdoc.

UziTech avatar UziTech commented on September 25, 2024

Actually it does have to do with images.

I have a page that, according to the nav bar, is on the last section when the header of the last section is actually about 1000px below the bottom of the page.

If I remove the images the nav bar is correct

from flatdoc.

UziTech avatar UziTech commented on September 25, 2024

It looks like the issue is in theme-white/script.js. The $.fn.scrollagent collects the offsets of the section headers before the images load.

Since the element is also saved in offsets.el, is there a reason you don't just look at offset.el.offsetTop instead of the saved value in offset.top?

from flatdoc.

rstacruz avatar rstacruz commented on September 25, 2024

@UziTech's fix will land in 0.9.0 shortly. thanks!

from flatdoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.