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.
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...
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.
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...
is working on a reply...