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

Link by id different behaviour from h/v index when using a custom header #986

Open
rparree opened this issue Jul 31, 2014 · 0 comments
Open

Comments

@rparree
Copy link
Contributor

rparree commented Jul 31, 2014

Hi,

I am working on a project where there is a marquee needed in the top which navigates to special pages.

For this reason i am using a div (div.marquee-container) between div.reveal and div.slides. This "marquee" needs to be above the section's background. The only way i was able to make that work was by positioning the marquee-container absolute.

There are two problems now. Which i think might be related. When using anchors using the h/v index of the section, all is swell, but when using an anchor by id is does not work as expected. The whole page gets pushed up.

With debugging the readURL function i noticed the id gets translated nicely to h/v index and then the same slide(h,v) function is called.

I have cloned and illustrated the problem in an isolated case: https://github.com/rparree/reveal.js/tree/problem-with-links

(p.s. The second problem is on an IPhone the sections are always pushed upwards regardless of the type of anchor. This looks like the same behaviour, but could also be completely unrelated. ).

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

No branches or pull requests

1 participant