PDA

View Full Version : li.getRegion().adjust is not a function



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!

jack.slocum
7 May 2007, 4:53 PM
That generally means you are re-including YUI utility classes after Ext and blowing away the extensions Ext adds to those classes.

crouchg
7 May 2007, 5:12 PM
That generally means you are re-including YUI utility classes after Ext and blowing away the extensions Ext adds to those classes.

Thanks Jack Spot On