View Full Version : [OPEN] [4.0.1] Menu show versus showBy

6 Jun 2011, 8:12 AM
Not sure if this is a bug as much as something that might just need to be added to the compatability layer or something, but the API of the Menu's show method has changed between 3 and 4.

3.3 Menu.show:

show( Mixed element, [String position], [Ext.menu.Menu parentMenu] ) : void

4.0 Menu.show:

show( String/Element animateTarget, [Function callback], [Object scope] ) : Component

The 4.0 equivalent of the 3.3 API appears to be this method:

4.0 Menu.showBy:

showBy( Mixed component The, [String position], [Array offsets] ) : Menu

Once I changed my old show call (that uses the optional position parameter) it worked as it did before. Might be something worth putting in the compat layer or something.