resizeTo() and modalDialog box

Results 1 to 2 of 2

Thread: resizeTo() and modalDialog box

  1. #1
    Dvorak Guest

    Default resizeTo() and modalDialog box

    Is it possible to call a resizeTo() or resizeBy() method on a modalDialog window?<BR><BR>I am using the following function to acheive the desired effect on a standard "pop up" window, but the same code has no effect on the modalDialog window.<BR><BR>script:<BR><BR>function toggleWin() {<BR>self.resizeTo(400, 500) <BR>}<BR><BR>then I call toggleWin() via an onclick handler and voila, the window expands exactly as I want. It has no effect on the window that has been created as a modalDialog.<BR><BR>Anyone know if modalDialogs support resizing? I am trying to simulate an application dialog that has options (usually at the bottom) that can be toggled via a triangle to pop out from the bottom of the window.

  2. #2
    Chad LaFarge Guest

    Default RE: resizeTo() and modalDialog box

    Ah, my sad friend... As I&#039ve just discovered, the objects created by showModalDialog and showModelessDialog are not actually windows, and cannot be treated as such. Huge bummer for me.<BR><BR>Perhaps you can programmatically close the modal dialog (setting to null), then reopen at the appropriate size.<BR><BR>Chad

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts