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

Wrong position when opening modal from toggled div with position relative #62

Open
emgiezet opened this issue Nov 12, 2012 · 0 comments

Comments

@emgiezet
Copy link

Hi there I saw that modal top is wrongly counted when I lunch the reveal from the containing div with relative position.

    modal.css({'top': $(document).scrollTop() - topOffset, 'opacity': 0, 'visibility': 'visible'});

https://github.com/zurb/reveal/blob/master/jquery.reveal.js#L44

That brings that the modal and background are displayed well but the modal is chopped of from the top. Most of it displays above the body element.

When I add console log to the

topOffset & topMeasure the topOffset were 30px but topMeasure goes to negative (-1000px)

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

No branches or pull requests

1 participant