Get form size

Hi,

I’m testing the 3.0 version, and i need to know
if there is any way to get the height and width of a form,
My intention is to resize the window to which the form is inserted.
The structure of the form is done with XML.

EX: “myForm = w1.attachForm();”
“myForm.loadStruct(“test.pl?action=dsp&e=”+new Date().getTime());”

Thanks

JDM

Try to get the sizes of a form this way:

width = yourForm.cont.firstChild.offsetWidth;
height = yourForm.cont.firstChild.offsetHeight;

Thanks Sematik,
Works great, but it should be noted that the functions must be inserted into an event as “onXLE”,
EX:
"myForm = w1.attachForm();
"myForm.loadStruct(“test.pl?action=dsp&e=”+new Date().getTime());
myform.attachEvent(“onXLE”, function (){
width = myForm.cont.firstChild.offsetWidth;
height = myForm.cont.firstChild.offsetHeight;
});

JDM