Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrollspy generates wrong offsets for a page-- recalculate offsets if scrollheight changes. #13220

Closed

Conversation

pconerly
Copy link

I have a long landing page that has a lot of images, and occasionally the images load after scrollspy's offset has been generated. The result is that the offset array generated is wrong and it will highlight the wrong images.

Looking at the code in scrollspy.js, there is no detection for a change in document height.

So here's the fix!

@cvrebert cvrebert added the js label Mar 28, 2014
@cvrebert cvrebert added this to the v3.2.0 milestone Mar 28, 2014
fat added a commit that referenced this pull request Jun 11, 2014
@fat
Copy link
Member

fat commented Jun 11, 2014

closing in favor of open pr

@fat fat closed this Jun 11, 2014
@fat
Copy link
Member

fat commented Jun 11, 2014

thanks for filing! ❤️

@fat fat mentioned this pull request Jun 11, 2014
mdo added a commit that referenced this pull request Jun 11, 2014
@mdo mdo mentioned this pull request Jun 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants