<hbox id="urlbar-icons">
<button type="menu">
<menupopup>
<menuitem label="menuitem"/>
<menuitem label="menuitem"/>
<menuitem label="menuitem"/>
</menupopup>
</button>
</hbox>
This is working with Firefox but with SeaMonkey seems to interfere
with the locationbar autocomplete popup.
Is there some workaround for this? I need to fill a bug?
I've added a CC to the seamonkey developers newsgroup as well.
Phil
--
Philip Chee <phi...@aleytys.pc.my>, <phili...@gmail.com>
http://flashblock.mozdev.org/ http://xsidebar.mozdev.org
Guard us from the she-wolf and the wolf, and guard us from the thief,
oh Night, and so be good for us to pass.
>Im trying to add a button with a menupopup in the locationbar as in Firefox to SeaMonkey
>
> <hbox id="urlbar-icons">
> <button type="menu">
> <menupopup>
> <menuitem label="menuitem"/>
> <menuitem label="menuitem"/>
> <menuitem label="menuitem"/>
> </menupopup>
> </button>
> </hbox>
>
>This is working with Firefox but with SeaMonkey seems to interfere with the locationbar autocomplete popup.
>Is there some workaround for this? I need to fill a bug?
>
>
I'm not sure why you might be seeing any interference. Could you describe the problem you're having in more detail?
Alternatively, you could consider using an image with a popup attribute; this is how the Feed icon works.
--
Warning: May contain traces of nuts.
Solved using image tag but FYI I will try to explain:
Using the button > menupopup method described above.
Start the browser click the arrow of the location bar autocomplete and
my menupopup is opened, instead of the 'popup' with the history of
URLs
This just happen the first time that you click in the arrow of the
location bar, other clicks to this arrow will don't do nothing. This
is why a think that here is some interference.
> Alternatively, you could consider using an image with a popup attribute; this is how the Feed icon works.
Thanks, that work as expected. Sorry I based my button looking at the
feed-button in Firefox.. without looking at the button of SeaMonkey.
Now the 'button' (image) works on both browsers as expected, many
thanks.
@Philip
Maybe it is a good idea add this to the thread
http://forums.mozillazine.org/viewtopic.php?f=19&t=863355
Something like:
To display a button with a menupopup in the urlbar-icons for both
browsers use:
<hbox id="urlbar-icons">
<image
popup="myExt-menu"
/>
</hbox>
<window id="main-window">
<menupopup
id="myExt-menu"
>
<menuitem label="menuitem"/>
<menuitem label="menuitem"/>
</menupopup>
</window>
Instead of :
>>I'm not sure why you might be seeing any interference. Could you describe the problem you're having in more detail?
>>
>>
>Solved using image tag but FYI I will try to explain:
>Using the button > menupopup method described above.
>Start the browser click the arrow of the location bar autocomplete and my menupopup is opened, instead of the 'popup' with the history of URLs
>
Ah yes, I remember now: the code that opens the URL history popup just
looks for any menupopup, so it goes wrong if you add your own. Ordinary
popups are fine of course.
In fact we ran into this very bug implementing the feed popup, which is
why that's now an image ;-)