-
-
Notifications
You must be signed in to change notification settings - Fork 980
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
Parent pages scroll position problem #604
Comments
Hello I have the same problem. It seems it remembers the vertical position of the last loaded page, and new loaded page is displayed in the same position - usually if the new page has no content there it just looks like a white screen. It makes perfect sense that every time new page loads, vertical position is set to 0. No idea how to do this. |
Same problem here. Anyone figured out how to solve this problem? @davidjbradshaw Wouldn't it be a great solution to set y-scroll on every new iframe page load to 0? |
You could call scrollTo(0,0) in the onReady event in the page you are loading |
@davidjbradshaw So the parent site doesn't scroll to top when the iframe page loads a new page. |
That looks like you are calling `scrollToOffset()`, rather than
`scrollTo()`.
|
@davidjbradshaw No, we simply call:
Can I reach you for private (paid) support? It would be great to have this problem solved. |
The first step would be to put a simple example of the issue online somewhere that I can look at it. |
I used
|
Try using
This seems to work in my situation. Hope it helps someone! |
@sandrab you can reduce your example to this:
|
Calling window.parentIFrame.scrollTo(0, 0) on "onReady" event is in-turn calling window.scrollTo(x,y) inside this library; but this seems to have no impact for me in the UI. But this workaround worked for me:
|
Hello David
Thank you for creating the iframe resizer script.
I seem to be having the occasional issue with a few of our websites. Once the iframe source has changed to a new source the page position keeps being thrown to the bottom of the page.
Just wondering if anyone else has had an issue like this? Please see example here: https://goo.gl/icHEBF
Please follow through to the last page which requires users details. Any thoughts would be appreciated.
The text was updated successfully, but these errors were encountered: