Results 1 to 3 of 3

Thread: FF: Popup Menu Position

  1. #1
    Ext JS Premium Member
    Join Date
    May 2007
    Posts
    48

    Default FF: Popup Menu Position

    Hi

    This popup menu displays in the top-left corner of the screen in FF2. IE6,IE7,FF3 All popup over the split menu button in the top-right corner.
    Code:
    searchMenu = new Ext.menu.Menu({
            id: 'searchMenu',
             items:
                [
                    new Ext.menu.CheckItem({
                        text: 'My Docs',
    				    group: 'scope',
    				    id: 'my_docs',
                        hideOnClick: false,
                        checkHandler: scopeSelect
                    }),
                    new Ext.menu.CheckItem({
                        text: 'Current Node',
                        group: 'scope',
    				    id: 'current_node',
                        hideOnClick: false,
                        disabled: true,
                        checkHandler: scopeSelect
                    }),
                    new Ext.menu.CheckItem({
                        text: 'Current Node and Below',
                        group: 'scope',
    				    id: 'current_node_recurse',
                        hideOnClick: false,
                        disabled: true,
                        checkHandler: scopeSelect
                    }),
                    new Ext.menu.CheckItem({
                        text: 'All Nodes',
                        group: 'scope',
                        hideOnClick: false,
                        checked: true,
    					id: 'all_nodes',
                        checkHandler: scopeSelect
                    }),
                    '-',
                    new Ext.menu.CheckItem({
                        text: 'Attachment Text',
                        id:'attachment_text',
                        hideOnClick: false,
                        handler: handleCheck
                    }),
                    new Ext.menu.CheckItem({
                        text: 'Document Text ',
        				id:'document_text',
                        hideOnClick: false,
                        handler: handleCheck
                    }),
                    new Ext.menu.CheckItem({
                        text: 'Indexes',
        				checked: true,
    					id: 'doc_indexes',
                        hideOnClick: false,
                        handler: handleCheck
                    }),
                    '-',
                    {text: 'Advanced Search', handler: show_advancedSearchDialog}
                ]
        });  
    
        var menuButton =  new Ext.Toolbar.MenuButton({
            id: 'quickSearch',
            handler: doQuickSearch,
       	    cls: 'x-btn-text-icon search',
            menu : searchMenu
    	});
    Attached Images Attached Images
    Last edited by VinylFox; 30 Jul 2008 at 6:14 AM. Reason: added code tags

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Answers
    1

    Default

    I just tested your code in FF2, and it works fine.

    Typically this kind of thing will happen when you have duplicate id's on the page.

    Check your code/html to see that your not using the id 'searchMenu' anywhere else.

  3. #3
    Ext JS Premium Member
    Join Date
    May 2007
    Posts
    48

    Default

    thanks I had a hidden form call 'quickSearch'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •