resize modal dialog

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • traviscoop
    New Member
    • May 2007
    • 10

    resize modal dialog

    I have a modal dialog that opens up a url with my content in an iframe, I do this so the content can post back to itself, etc., I want the modal dialog to only be as big as it needs to be to show all the content. So using some javascript in the page that contained in the iframe, how can I resize the modal dialog?
  • traviscoop
    New Member
    • May 2007
    • 10

    #2
    Nevermind, I found it, for anybody else that finds this useful i did it like this:
    parent.window.d ialogWidth = [your width in pixels] + "px";
    parent.window.d ialogHeight = [your height in pixels] + "px";

    Comment

    Working...