rem:  window.moveTo( (screen.availLeft + screen.availWidth - window.outerWidth) - 10, screen.availTop + screen.availHeight - window.outerHeight); 
add:  var x = gOrigin & NS_ALERT_LEFT ? screen.availLeft : screen.availLeft + screen.availWidth - window.outerWidth; var y = gOrigin & NS_ALERT_TOP ? screen.availTop : screen.availTop + screen.availHeight - window.outerHeight;   if (gOrigin & NS_ALERT_HORIZONTAL) y += gOrigin & NS_ALERT_TOP ? 10 : -10; else x += gOrigin & NS_ALERT_LEFT ? 10 : -10;  window.moveTo(x, y); 
context: function onAlertLoad(){  // read out our initial settings from prefs.  try   {    var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService();    prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService);    var prefBranch = prefService.getBranch(null);    gSlideIncrement = prefBranch.getIntPref("alerts.slideIncrement");    gSlideTime = prefBranch.getIntPref("alerts.slideIncrementTime");    gOpenTime = prefBranch.getIntPref("alerts.totalOpenTime");  } catch (ex) {}  sizeToContent();  // work around a bug where sizeToContent() leaves a border outside of the content  var contentDim = document.getElementById("alertBox").boxObject;  if (window.innerWidth == contentDim.width + 1)    --window.innerWidth;  gFinalHeight = window.outerHeight;  // start with a 1px height, because 0 causes trouble with gtk1/2  window.outerHeight = 1;  // be sure to offset the alert by 10 pixels from the far right edge of the screen  window.moveTo( (screen.availLeft + screen.availWidth - window.outerWidth) - 10, screen.availTop + screen.availHeight - window.outerHeight);  setTimeout(animateAlert, gSlideTime);}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7ed556d4fe5dc5a6f162c7d5ac069575492590d4/alert.js/buggy/xpfe/components/alerts/resources/content/alert.js