PDA

View Full Version : ext3.0 Menu 's problem



stupidext
14 May 2009, 12:28 AM
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..

14 May 2009, 5:49 AM
1) That's a nice name. http://www.nissanclub.com/forums/images/smilies/sadwavey.gif
2) That's because Menu now extends container. it's not a problem, but a change.

Animal
14 May 2009, 5:57 AM
You already reported this.

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