Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • overflew 87 posts 110 karma points
    Aug 01, 2010 @ 02:45
    overflew
    0

    OpenModalDialog ignoring 'height' option

    Hi,

    I'm using the OpenModalDialog javascript method in the backoffice to open a, well, dialog. The problem I'm having is that it seems to ignore the height param I give it. The width seems fine, but I can't figure out what I'm missing in the code / HTML / css that is causing a narrow box (it seems to default to 100px or so).

    I've tried:

    - Calling a few different pages
    - Using /umbraco/masterpages/umbracoDialog.Master
    - Comparing it to items in the source, such as the About dialog
    - Having a quick browse with Firebug to see where the height property is set - can't seem to find it...

    Has anyone run into this before? I'm sure it's a simple fix... once it's found.

    Thanks.

  • overflew 87 posts 110 karma points
    Aug 01, 2010 @ 10:53
    overflew
    0

    k - turns out the parameter list was different to what I thought, the 3rd param is 'show title' - whereas I just had (url, title, width, height) - so the 5th param is actually height, which wasn't specified...

    For future reference, please use the C# API call ClientTools.Scripts.OpenModalWindow to generate the JS - a boatload easier...

Please Sign in or register to post replies

Write your reply to:

Draft