View Full Version : Why is Ext.menu.Menu.ownerCt being cleared in Ext 3.4? (Different than 3.3.1)

3 Nov 2011, 12:58 PM
Hi there,

I have a custom Ext.menu.Menu extension that loads options dynamically from the server. It has a disabled "Loading..." menu item while loading, and after finishes, it adds the menu items (using this.add) to the menu. The width of the menu might change with the loaded options, so I was re-aligning with the parent menu container after adding the items. I was using this.ownerCt to find the parent Ext.menu.Item of my Ext.menu.Menu, but now it appears that is being cleared out in 3.4.0 (source/widgets/menu/Item.js line 85), so I can't re-align.

Is there another way to get the parent Ext.menu.Item from an Ext.menu.Menu? What was the idea behind this change?


18 Nov 2011, 11:43 AM
Can you provide a test case. I cannot reproduce this.

18 Nov 2011, 12:17 PM
Apologies for not updating this thread, but I moved it over to premium help since no one was responding: http://www.sencha.com/forum/showthread.php?153921-Why-is-Ext.menu.Menu.ownerCt-being-cleared-in-Ext-3.4-(Different-than-3.3.1)