views:

250

answers:

1

I am creating a Firefox extension that pops up growl-like notifications. Currently I am popping them up relative to a status bar icon. This is fine unless there are other status bar extensions installed that would make my icon not the rightmost element. How would I go about positioning it so that the notifications always start at the bottom right?

Current Code:

container.openPopup(document.getElementById('notification-statusbar'), 'before_end', 0, -5, false, false);
A: 

I think I'm right in saying that the default statusbar id is "status-bar" (it'd certainly make sense!). If this is the case then you should be able to always append it to the "before_end" of

document.getElementById("status-bar")

Alex