Luc Well, I actually used another approach to resize the window. My
difficulty was calling the Window from the DOM. After I figured that out, I
used the following function:

 function updateSize(width, height, id)
 {
   Windows.getWindow(id).setSize(width, height);
  Windows.getWindow(id).updateWidth();
 }

and called it through: parent.updateSize('xx', 'xx', 'id').

(setSize sets the size of the content, updateWidth updates the window to fit
the content)

I don't think the updateWidth would have done anything without first setting
the size of the content, in my case, but I didn't try that....

I don't know if that helps...


Issachar

On 11/27/06, Luc Van den Borre <[EMAIL PROTECTED]> wrote:

Issachar Brooks wrote:
> Worked! Thanks! Forgive my javascript ignorance... I am quite new at
> this... :)
>
> On 11/27/06, *Felix Shnir* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     You could try parent.Windows.getWindow('30').updateWidth();

Issachar, does this actually resize the PWC window to fit the content?
I have the same situation, but for me this call will just set the window
width to the one specified as a parameter in new Window(...), i.e. it
will not change the width.

Thanks,

Luc

_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to