简体   繁体   中英

How do I position a XUL Panel (Firefox) in the bottom right hand corner of the main window?

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);

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")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM