API issues moving windows

 From:  Michael Gibson
10946.8 In reply to 10946.7 
Hi Joe, so a dialog will fire a 'display' UI event when it's finished loading so it should be possible to wait for that to happen before calling .move(x,y) on it.

Try like this:
code:
var dlg = moi.ui.createDialog( '<html><body class="DialogBody"><div>testing</div><div>testing</div><div>testing</div><moi:DialogClose/></body></html>' );

while ( dlg.waitForEvent() )
{
    if ( dlg.event == "display" )
        break;
}

dlg.window.move( 10, 10 );


I have also got it set up for the next beta so that if a script calls .move() or .resize() on a window before it has finished loading it will record the given position or size and apply it after it has loaded.

- Michael