bigHeight seems not working when using percentage

Home Forums MapPress Support bigHeight seems not working when using percentage

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15377
    luke7263
    Participant

    Its seems this is not working in a post:

    [mashup query=”post_per_page=-1″ width=”100%” height=”300px” bigWidth=”100%” bigHeight=”100%”] or [mashup query=”post_per_page=-1″ width=”100%” height=”50%” bigWidth=”100%” bigHeight=”100%”].

    bigHeight with a percentage looks like a height at 0.

    But when replacing 100% by 500px for example, it works.

    You can check this on http://orrion.fr/acces-a-la-base/

    Thanks.

    #15378
    Chris
    Keymaster

    Hi,

    Percent height isn’t supported by the plugin.

    This is because of the way CSS works: if an element has a % height, the height is calculated based on its parent element(s) – not the window.

    In most blogs (including yours) the parent elements don’t have a fixed height because they grow to the size of the post content. In this case ‘100%’ would return ‘0 pixels’ and you would just see a thin horizontal line for the map.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.