By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,784 Members | 3,274 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,784 IT Pros & Developers. It's quick & easy.

resize modal dialog

P: 10
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?
May 24 '07 #1
Share this Question
Share on Google+
1 Reply


P: 10
Nevermind, I found it, for anybody else that finds this useful i did it like this:
parent.window.dialogWidth = [your width in pixels] + "px";
parent.window.dialogHeight = [your height in pixels] + "px";
May 24 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.