WordPress.org

Ready to get started?Download WordPress

Forums

iframe
same_height_as="content" shows up a little to small (2 posts)

  1. Ulco Oskam
    Member
    Posted 1 year ago #

    In my site I added an Iframe withe the code [iframe src="http://www.deossekamp.nl/extern/genoskam/index.htm" width="100%" same_height_as="content"].

    When it is shown in the page the hight of the frame is somewhat too small. At least when I am looking in Firefox (latest version).

    Is this something to correct?

    Regards,
    Ulco

    http://wordpress.org/extend/plugins/iframe/

  2. redkoopa
    Member
    Posted 1 year ago #

    Hi,

    I had the same problem; here's a simple quick and dirty solution! My solution adds another pixel to the contents height. Here we go:

    From the plugins page, click Edit on the iframe plugin.

    Find the following line:

    var embed_height = $(this).contents().find("body").height();

    Just before the final ; add +1 so that the line looks like this:

    var embed_height = $(this).contents().find("body").height()+1;

    Click update file.... problem solved :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic