Big space at bottom of iframe

Big space at bottom of iframe

by Chris Adams -
Number of replies: 1

Hi folks.

Whenever I embed something in an iframe, there's a massive space at the bottom, thus:

Notice the space between the video (in the iframe) and the text 'or by dilution'. This seems to be happening because the element containing the iframe has had it's height arbitrarily set to 604px (I can't work out where), which is 200px too high for the content.

It seems to be similar to MDL-31368, which is marked as fixed, although I'm not embedding it but am actually putting in iframe tags via the html editor.

Any ideas?

Thanks,

Chris

Average of ratings: -
In reply to Chris Adams

Re: Big space at bottom of iframe

by Joseph Thibault -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Chris, I think you should try setting the height parameters... 

Here's some code that we've used to help iframe some html documents to our Quiz details page.

<iframe src="http://files.com/thiscooltextfile.html" onload="setInlineContentHeight(this);" frameborder="0" height="950" width="100%"> Your browser does not display iFrames</iframe>