var chromeHeight = /^[0-9]+/.exec(window.dialogHeight) - document.body.clientHeight;
var contentHeight = document.all.mainLayer.offsetHeight;
window.dialogHeight = (contentHeight + chromeHeight) +"px";
The chromeHeight variable determines the total height of the window chrome (title bar, border, etc.). The content height gets the height of the document's content (all of our content in this window is contained in a single div named 'mainLayer')
-- Jeff
Frank W. Zammetti wrote:
I don't think that's possible, unless you can figure out a way to calculate the size of the content that will appear. You might be able to open the window and place everything within a <div>, then read it's innerwidth style attribute and set the size of the window (it is possible to resize an existing windows through CSS). Not sure that will work, just thinking out loud.
Frank
-----Original Message-----
From: "senthil Kumar"<[EMAIL PROTECTED]>
Sent: 2/10/05 1:46:24 AM
To: "Struts Users Mailing List"<user@struts.apache.org>, "[EMAIL PROTECTED]"<[EMAIL PROTECTED]>
Subject: Re: How to Resize the window in my popup
Sir.,
Now it is comming, thanks.
How to set autosize of the Window.
I mean without scroll bar the window size show according to the data
available in window.
Thanks in advance.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]