crouchg
7 May 2007, 4:47 PM
I have implemented a simple menu on a tool bar.
this.tb = new Ext.Toolbar(this.el);
this.CanMenu = new Ext.menu.Menu({
id: 'canMenu',
items: [
{text: 'New', handler: onItemClick},
{text: 'Edit', handler: onItemClick},
{text: 'Save', handler: onItemClick}
]
});
this.tb.add( {
text: 'Clients',
tooltip: {text:'Client Menu...', autoHide:true},
menu : this.CanMenu
} );
function onItemClick(){};
But when I roll the mouse over the menu items I get the 'li.getRegion().adjust' is not a function error.
Help Please!
this.tb = new Ext.Toolbar(this.el);
this.CanMenu = new Ext.menu.Menu({
id: 'canMenu',
items: [
{text: 'New', handler: onItemClick},
{text: 'Edit', handler: onItemClick},
{text: 'Save', handler: onItemClick}
]
});
this.tb.add( {
text: 'Clients',
tooltip: {text:'Client Menu...', autoHide:true},
menu : this.CanMenu
} );
function onItemClick(){};
But when I roll the mouse over the menu items I get the 'li.getRegion().adjust' is not a function error.
Help Please!