Comments (4)
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.
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.
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.
@UziTech's fix will land in 0.9.0 shortly. thanks!
from flatdoc.
Related Issues (20)
- Current project status HOT 5
- Search function
- role='flatdoc': flatdoc is not valid value of attribute 'role'
- Ordered list support
- Adding elements on('flatdoc:ready') causes scroll bar to desync
- Current state of flatdoc HOT 2
- Internal links HOT 1
- Search engine indexing
- Use Markdown files in same directory
- Making images float to the right
- SVG render width
- Static site generation? HOT 1
- When using Gravizo, it produces text
- Highlighting language HOT 1
- Does not properly parse TOCs generated from DocToc
- Broken syntax highlighting with mixed " and '
- Flatdoc shows only blank page HOT 4
- Flatdocs menu highlights wrong section HOT 1
- Does not work with webpack HOT 1
- Getting ParseError when compiling style.styl
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flatdoc.