Re: popup menu from toolbar not working on 2.0.0.6? - Mozilla

This is a discussion on Re: popup menu from toolbar not working on 2.0.0.6? - Mozilla ; Ray, Are you using submenus under the popup? If so, there is at least one bug in FF 2.0.0.x with this. I've written workaround code if you'd liketo see it. However, if you're not using submenus (i.e., menus under the ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Re: popup menu from toolbar not working on 2.0.0.6?

  1. Re: popup menu from toolbar not working on 2.0.0.6?

    Ray,

    Are you using submenus under the popup? If so, there is at least one bug in FF 2.0.0.x with this. I've written workaround code if you'd liketo see it. However, if you're not using submenus (i.e., menus under the top-level menu popup), then you shouldn't need it.


    ----- Original Message ----
    From: Nils Maier
    To: dev-extensions@lists.mozilla.org
    Sent: Tuesday, August 21, 2007 1:49:51 AM
    Subject: Re: popupmenu from toolbar not working on 2.0.0.6?

    Ray Kiddy wrote:
    >
    > Ihave an extension I am working on. There are about 5 toolbar buttons,
    > but they need to be menu items under one button.
    >
    > When I put together a popup menu using the stuff described in
    > http://developer.mozilla.org/en/docs...al:Popup_Menus, it works
    > great. On 3.0a8pre. On 2.0.0.6, there is no popup menu from the button.
    >
    > Is there something obvious I have missed?
    >
    > I am going to slice off parts of my projectand create a minimal
    > extension that demonstrates the problem, but before I went to all that
    > effort, I thought I would just ask if I am missing something obvious.
    >
    > We have tested on both Windows XP and Mac OS X with 2.0.0.6, and
    > 3.0a8pre from 2007/08/12.
    >
    > Any suggestions?
    >
    > thanx - ray


    What works for me is this:
    > > class="chromeclass-toolbar-additional* toolbarbutton-1"
    > type="menu-button"
    > ...>
    >
    >
    > ....
    >

    >


    * Hide this item within popup windows.

    In FX you will usually add this overlaying the BrowserToolbarPalette
    >


    The whole popup handling is reworked on trunk, so I think differences
    might be expected.
    https://bugzilla.mozilla.org/show_bug.cgi?id=279703

    Hope this helps
    Nils

    _______________________________________________
    dev-extensions mailing list
    dev-extensions@lists.mozilla.org
    https://lists.mozilla.org/listinfo/dev-extensions






  2. Re: popup menu from toolbar not working on 2.0.0.6?

    On Tue, 21 Aug 2007 06:16:55 -0700 (PDT), eric.jung@yahoo.com wrote:

    > Are you using submenus under the popup? If so, there is at least one
    > bug in FF 2.0.0.x with this. I've written workaround code if you'd
    > like to see it. However, if you're not using submenus (i.e., menus
    > under the top-level menu popup), then you shouldn't need it.


    The problem I'm having on trunk is that the menu pops up detached about
    5 cm to the right of the menu-button. On branch with exactly the same
    code the menu pops up as expected next to my menu-button.

    Phil

    --
    Philip Chee ,
    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.
    [ ]I don't want to be a cynic, but it's hard...
    * TagZilla 0.066.6


+ Reply to Thread