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

Can't get this to scroll to the correct position in an iframe #5

Open
frumbert opened this issue Oct 11, 2012 · 1 comment
Open

Can't get this to scroll to the correct position in an iframe #5

frumbert opened this issue Oct 11, 2012 · 1 comment

Comments

@frumbert
Copy link

frumbert commented Oct 11, 2012

I'm trying, from the parent document, to scroll an iframe smoothly to a particular position of an id. the iframe doesn't have jquery in it, but the parent does, so from the parent I'm

$("my-iframe").contents().find("#" + ref).scrollIntoView();

where "ref" is the id I want to scroll to.

The position of the scroll appears to take into account the offset of the iframe from the top of the parent document, not consider the iframe its own window??

@Arwid
Copy link
Owner

Arwid commented Oct 12, 2012

I don't believe this plugin was ever tested for iframes. Do you have an example link of how you're using it? Or if you can, use http://jsfiddle.net to create one.

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

No branches or pull requests

2 participants