rem: window.moveTo(screen.availLeft + screen.availWidth - window.outerWidth, screen.availTop + screen.availHeight - window.outerHeight); 
add:   var x = gOrigin & LEFT ? screen.availLeft : (screen.availLeft + screen.availWidth - window.outerWidth); var y = gOrigin & TOP ? screen.availTop : (screen.availTop + screen.availHeight - window.outerHeight); window.moveTo(x, y); 
context: function resizeAlert(aMoveOffScreen){  // sizeToContent is not working. It isn't honoring the max widths we are attaching to our inner  // objects like the folder summary element. While the folder summary element is cropping,   // sizeToContent ends up thinking the window needs to be much wider than it should be.   // use resizeTo and make up our measurements...  //sizeToContent();    // Use the wider of the alert groove and the folderSummaryInfo box, then   // add on the width of alertImageBox + some small amount of fudge. For the height,   // just use the size of the alertBox, that appears to be pretty accurate.  var windowWidth = Math.max (document.getBoxObjectFor(document.getElementById('alertGroove')).width,                              document.getBoxObjectFor(document.getElementById('folderSummaryInfo')).width);  resizeTo(windowWidth + document.getBoxObjectFor(document.getElementById('alertImageBox')).width + 30,            document.getBoxObjectFor(document.getElementById('alertBox')).height + 10);                         // leftover hack to get the window properly hidden when we first open it  if (aMoveOffScreen)    window.outerHeight = 1;  window.moveTo(screen.availLeft + screen.availWidth - window.outerWidth, screen.availTop + screen.availHeight - window.outerHeight);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/e8ea696f165f4b02f01f1fd410af8dd33948d483/newmailalert.js/buggy/mail/base/content/newmailalert.js