X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775:/pkgs/pkg-menu-debug.js diff --git a/pkgs/pkg-menu-debug.js b/pkgs/pkg-menu-debug.js index dec91c75..b8c9b7b0 100644 --- a/pkgs/pkg-menu-debug.js +++ b/pkgs/pkg-menu-debug.js @@ -1,5 +1,5 @@ /*! - * Ext JS Library 3.0.0 + * Ext JS Library 3.0.3 * Copyright(c) 2006-2009 Ext JS, LLC * licensing@extjs.com * http://www.extjs.com/license @@ -10,10 +10,13 @@ *

Layout manager used by {@link Ext.menu.Menu}. Generally this class should not need to be used directly.

*/ Ext.layout.MenuLayout = Ext.extend(Ext.layout.ContainerLayout, { - monitorResize: true, + monitorResize : true, setContainer : function(ct){ this.monitorResize = !ct.floating; + // This event is only fired by the menu in IE, used so we don't couple + // the menu with the layout. + ct.on('autosize', this.doAutoSize, this); Ext.layout.MenuLayout.superclass.setContainer.call(this, ct); }, @@ -40,13 +43,14 @@ this.itemTpl.append(target, a, true)); // Link the containing
  • to the item. - c.positionEl.menuItemId = c.itemId || c.id; + c.positionEl.menuItemId = c.getItemId(); // If rendering a regular Component, and it needs an icon, // move the Component rightwards. if (!a.isMenuItem && a.needsIcon) { c.positionEl.addClass('x-menu-list-item-indent'); } + this.configureItem(c, position); }else if(c && !this.isValidParent(c, target)){ if(Ext.isNumber(position)){ position = target.dom.childNodes[position]; @@ -55,7 +59,7 @@ } }, - getItemArgs: function(c) { + getItemArgs : function(c) { var isMenuItem = c instanceof Ext.menu.Item; return { isMenuItem: isMenuItem, @@ -63,12 +67,12 @@ icon: c.icon || Ext.BLANK_IMAGE_URL, iconCls: 'x-menu-item-icon ' + (c.iconCls || ''), itemId: 'x-menu-el-' + c.id, - itemCls: 'x-menu-list-item ' + (this.extraCls || '') + itemCls: 'x-menu-list-item ' }; }, // Valid if the Component is in a
  • which is part of our target