-
-
Notifications
You must be signed in to change notification settings - Fork 47.3k
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
Anchor offsetTop issue #4706
Comments
could you please offer a reproducible online demo for us? |
Hi there. I am having the same issue. |
RaoHai
added a commit
to RaoHai/ant-design
that referenced
this issue
Feb 9, 2017
+ close ant-design#4706 + `<Anchor offset={x} />` will calculate target position correctly.
ddcat1115
pushed a commit
that referenced
this issue
Feb 10, 2017
+ close #4706 + `<Anchor offset={x} />` will calculate target position correctly.
Problem solved! Thank you very much! |
cool .. works! thanks a lot |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Links of Anchor are scrolling to wrong position.
I'm using a div as a top bar which has position fixed and height 50px. All the content is margined from top by 50 px.
This seems to make the issue with Anchor's links. They are scrolling to wrong position 50 pixels down. I tried to set offsetTop property to Anchor component but makes no difference.
The text was updated successfully, but these errors were encountered: