WordPress.org

Ready to get started?Download WordPress

Forums

Google Doc Embedder
[resolved] Not Showing the correct height (4 posts)

  1. os2mac
    Member
    Posted 1 year ago #

    after enabling the beta version, it only displays a portion of the overall document rather than the full height, even thought that's what I have it set at

    see:

    http://thunderbirdheights.net/WordPress/2012/09/03/bbq-2/

    http://wordpress.org/extend/plugins/google-document-embedder/

  2. k3davis
    Member
    Plugin Author

    Posted 1 year ago #

    Hi os2mac,

    Setting the document height to 100% in CSS probably does not do what you think it does. 100% height makes the document the full height of the parent container, not of the document itself. Since the parent container has no fixed height (which is normal - you want the page to expand to fit its contents) the browser has nothing to reference. In effect the browser says "100% of what?" and gives you the minimum.

    I recommend you set the height to a fixed pixel value, or else you can wrap the viewer in a div of a fixed height (which seems a bit redundant).

    Thanks,

    Kevin

  3. trik_sea
    Member
    Posted 1 year ago #

    Same question here. I'm working on a responsive site so setting a pixel value for height doesn't work. I've tried desperately to find out where the surrounding frame value is determined and how to change it but am coming up empty (using Firebug). Here's a link to my site. Any help is appreciated.

    http://tinyurl.com/bo5g597

  4. k3davis
    Member
    Plugin Author

    Posted 1 year ago #

    This isn't a limitation of the plugin but the way the CSS works. You can use the class applied to the whole iframe in your CSS to make it responsive, though in that case the inline style might conflict. You could try adding !important to your own CSS styles to see if that would overrule (not sure if it does). Maybe I should have the option of not including an inline size in this event...?

    The parent frame isn't likely to have a height set - it's usually just loaded in the body of the page - so it just scrolls forever until the page ends. That's why 100% height doesn't work, and presumably why you can't find it in firebug.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags