WordPress.org

Support

Support » Plugins and Hacks » iframe Shortcode » [Resolved] [Plugin: iframe Shortcode] Automatic 100% height?

[Resolved] [Plugin: iframe Shortcode] Automatic 100% height?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jackson

    @madjax

    You can adjust the height attribute within the code you’re inserting:

    <iframe height="100%"...

    That should set the iframe to fill the space within your layout, but does not take into account the height of the content inside the iframe.

    Detecting and auto-adjusting the height is beyond the scope of this little plugin. But it can be done – if the iframe is coming from the same domain as the calling page – which it usually isn’t.

    Here’s a jQuery solution for auto height (provided content is on the same domain)

    http://sonspring.com/journal/jquery-iframe-sizing

    Hope that helps!

    thank you for explanation… will try with the plugin…

    Content that I want to display is from another domain… so I guess I should forget about “no scroll bars” or do you have a better idea how to deal with this?

    Thanks

    Plugin Author Jackson

    @madjax

    If you have some expectation of the height of the content, you can set the iframe accordingly to avoid scroll bars. If the height of the content is constantly variable over a wide range then you might be better off with a non iframe solution like jQuery’s load() function.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: iframe Shortcode] Automatic 100% height?’ is closed to new replies.
Skip to toolbar