1. #1
    Ext User
    Join Date
    May 2009
    Posts
    18
    Vote Rating
    0
    stupidext is on a distinguished road

      0  

    Exclamation ext3.0 Menu 's problem

    ext3.0 Menu 's problem


    why code follows doesn't work?

    var m = new Ext.menu.Menu([{
    text : 'test',
    handler : function(){}
    },{
    text : 'test2',
    handler : function(){}
    }]);

    m.showAt(e.getPoint());// e relates to a context click event

    but if change code like this:

    var m = new Ext.menu.Menu({
    items : [{
    text : 'test',
    handler : function(){}
    },{
    text : 'test2',
    handler : function(){}
    }]
    });

    m.showAt(e.getPoint());

    it works.

    is that a bug? 'cause ext2 works well..

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    1) That's a nice name.
    2) That's because Menu now extends container. it's not a problem, but a change.

  3. #3
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,506
    Vote Rating
    54
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    You already reported this.

    And it's a problem which has been fixed in SVN.

Thread Participants: 2