WordPress.org

Support

Support » Plugins and Hacks » same_height_as="content" shows up a little to small

same_height_as="content" shows up a little to small

  • Ulco Oskam
    Member

    @ulco-oskam

    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/

Viewing 1 replies (of 1 total)
  • 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 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘same_height_as="content" shows up a little to small’ is closed to new replies.