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 iframe height based on the height of its content #4

Merged
merged 1 commit into from
Jun 19, 2018

Conversation

paul90
Copy link
Member

@paul90 paul90 commented Jun 19, 2018

add an onload script to set the height of the iframe based on the size of the contents.

without specifying a height the iframe will be 150px high. As the size of the audio player varies between browser we need to look into the iframe and use height of its body to set the height.

…e of the contents.

without specifying a height the iframe will be 150px high. As the size of the audio player varies between browser we need to look into the iframe and use height of its body to set the height.
@paul90 paul90 merged commit 16f9546 into master Jun 19, 2018
@paul90 paul90 deleted the paul90/frame-resize branch June 19, 2018 13:28
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

Successfully merging this pull request may close these issues.

None yet

2 participants