API issues moving windows

 From:  Joe (CTKJOSE)
10946.4 In reply to 10946.2 
Hi

Im gonna clean up my code and uploaded to GitHub, in the meantime the gist is the following:

Im trying to stack new notifications and also avoid having the notifications popup in the middle of the work area. These are passive notifications. Some of them will auto close, other may include actionable items.

code:
var aView = moi.ui.createDialog( 'moi://appdata/libs/PluginSDK/tplNotification.html?id=' + this.notID, 'defaultWidth:350,defaultHeight:100', moi.ui.mainWindow );
if ( aView ){

//save the notification view, so I can reorder them when one is closed
var y = 100;
aView.window.move(1, y);
}


I tried very simple examples and using manual values without any luck.

I notice that the dialogs do remember their size, but always open in the center of the workspace