radha_v
21 Feb 2010, 9:46 PM
I am porting from Ext2.x to Ext3.1.
I have a tree panel with context menu. In 3.1+, I get an error:
menu.getEl() is undefined in this line of code:
//node is the tree node
//
menu.showAt(menu.getEl().getAlignToXY(node.getUI().getTextEl(), 'tl-bl?',[40,0]));
//
I changed this to:
menu.show(node.getUI().getAnchor());
This got me past the undefined error, but now I get the error:
el is undefined
[Break on this error]
out = (v = el.style[prop]) ? v : ext-all-debug.js (line 5773)
Whenever the context menu is displayed.
Could anyone provide some help on why menu.getEl() is undefined in the first place?
Thanks.
I have a tree panel with context menu. In 3.1+, I get an error:
menu.getEl() is undefined in this line of code:
//node is the tree node
//
menu.showAt(menu.getEl().getAlignToXY(node.getUI().getTextEl(), 'tl-bl?',[40,0]));
//
I changed this to:
menu.show(node.getUI().getAnchor());
This got me past the undefined error, but now I get the error:
el is undefined
[Break on this error]
out = (v = el.style[prop]) ? v : ext-all-debug.js (line 5773)
Whenever the context menu is displayed.
Could anyone provide some help on why menu.getEl() is undefined in the first place?
Thanks.