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

set AutoResize option in iFrame #97

Closed
Jiachg opened this issue Sep 25, 2014 · 3 comments
Closed

set AutoResize option in iFrame #97

Jiachg opened this issue Sep 25, 2014 · 3 comments

Comments

@Jiachg
Copy link

Jiachg commented Sep 25, 2014

In my project , I used your plugin to auto resize iframe , it works well . but sometimes init the iframe object to auto resize, I need to stop auto resize in some condition , after then I even need to restart auto resize , Even I want to reset the iframe height and stop it. now in your project ,I can not do it . May you give me some suggestion . Waiting for you respond .

AT CURRENT VERSION , WE CAN INIT IFRAME OBJECT ONLY ONCE, IF I WANT TO SET THE HEIGHT OF IFRAME , I NEED TO SET CONFIG autoresize = false. BUT WHEN I INIT IFRAME TO AUTOREIZE firstrun BECOME FALSE. WE CAN NOT MODIFY THE settings .

@davidjbradshaw
Copy link
Owner

You would need to add a setAutoReszie function to the parentIFrame object. See the setHeightCalculationeMethod function for an example of how to do this and I'd welcome a patch if you do this.

@davidjbradshaw davidjbradshaw changed the title Sme tips to extend the iframe-resizer. set AutoResize option in iFrame Sep 25, 2014
@Jiachg
Copy link
Author

Jiachg commented Oct 6, 2014

I have pull a request for it.

@Jiachg
Copy link
Author

Jiachg commented Oct 8, 2014

please see the #103 , I have pulled a request for this problem , can you review it and patch .

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