开发者

extjs treenode position

is there any开发者_开发知识库way to find the xy position of a treenode


Assuming that you are referring to a TreeNodeUI element, all you need to do is get the underlying HTML element using Ext.get, then call the getXY method. It should be something like this:

var extElem = Ext.get(treeNode.getEl()); //the Ext.get may not be necessary in this case.
var xy = extElem.getXY(); //returns [x, y]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜