Tree contextmenu - Ext JS

The tree context menu goes to a strange position if a node has children nodes and they are open.
Here ares some screen shots to help you, on both I clicked the same node , the "TB_MOVIE" node..

http://www.rodrigodiniz.qsh.eu/Tree1.jpg
http://www.rodrigodiniz.qsh.eu/Tree2.jpg
__________________
ExtJsExtender Controls
http://www.extendersamples.qsh.eu
My Blog
http://rodiniz.blogspot.com
Reply With Quote
  # 2  
Old 02-23-2007, 06:31 AM
Default

Change the element you are aligning it to. node.ui.getAnchor() will position it under the node's text. You can also change where it aligns on the anchor by passing an alignment as the second param to show(). See Element.alignTo for more details.
Reply With Quote
  # 3  
Old 02-23-2007, 06:38 AM
Default

Worked like a charm thanks !!!
perhaps you should comment this on the sample code that is on this forum
and the code is different is node.ui.getEl()
__________________
ExtJsExtender Controls
http://www.extendersamples.qsh.eu
My Blog
http://rodiniz.blogspot.com
Reply With Quote
  # 4  
Old 02-23-2007, 07:13 AM
Default

Will do. Thanks!
Reply With Quote
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值