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

fix(nuxt): consider doc scroll-padding-top in scrollBehavior #28083

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

boogie-ben
Copy link
Contributor

…ult router scrollBehavior calculates the expected scroll position of the HashElement

🔗 Linked issue

#20555

📚 Description

calculating the scroll-padding-top of the document when the default router scrollBehavior calculates the expected scroll position of the HashElement

…ult router scrollBehavior calculates the expected scroll position of the HashElement
Copy link

stackblitz bot commented Jul 9, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link
Member

@danielroe danielroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you ❤️

@danielroe danielroe changed the title fix: scrollBehavior calculating the scroll-padding-top of the document fix(nuxt): consider doc scroll-padding-top in scrollBehavior Jul 12, 2024
@danielroe danielroe merged commit 48a8b18 into nuxt:main Jul 12, 2024
40 checks passed
@github-actions github-actions bot mentioned this pull request Jul 12, 2024
@github-actions github-actions bot mentioned this pull request Jul 15, 2024
@misurito
Copy link

@danielroe @boogie-ben This code introduces a bug.
Number.parseFloat('auto') ( valid syntax for getComputedStyle(elem) padding/margin ) will amount to NAN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants