Results 1 to 3 of 3

Thread: li.getRegion().adjust is not a function

  1. #1

    Thumbs up li.getRegion().adjust is not a function

    I have implemented a simple menu on a tool bar.

    Code:
        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!

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956

    Default

    That generally means you are re-including YUI utility classes after Ext and blowing away the extensions Ext adds to those classes.
    Jack Slocum
    Sencha Co-Founder, Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum

  3. #3

    Default Thanks Jack Spot On

    Quote Originally Posted by jack.slocum View Post
    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

Posting Permissions

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