1
votes

Currently I have a XUL notification box being displayed as I am developing a Firefox Addon. At the moment the notification box will only display at the bottom of the browser and cannot find any information about changing the position to the top of the browser. I know you can use priority_high etc... but it only seems to add this again at the bottom of the browser.

Code:

<notificationbox flex="0.1">
<browser src="http://www.mozilla.org"/> 
<notification type="warning" label="Test"/> 
</notificationbox>

Any help will be grateful.

1
You can try door hanger pop-up:stackoverflow.com/questions/7816749/…linguini
I have used the position attribute but it only allows for the box to be right at the top so that the browser buttons to close the browser are no longer accessible. <notificationbox position="1"> <browser src="mozilla.org"> <notification type="warning" label="Test"/> </notificationbox>user2055933
This does not seem to move the positioning of the notification box. Ive tried both top and left and neither have adjusted the box.user2055933

1 Answers

0
votes

I have tested with XUL Explorer, I could change the positions successfully. Here is the code:

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

    <!-- your code here -->
<stack>
<hbox flex="1" left="100" right="10" top="50" bottom="10"> 
<notificationbox flex="0.1" >
<browser src="http://www.mozilla.org"/>
<notification type="warning" label="Test" />
</notificationbox>
</hbox> 
</stack>
</window>

enter image description here