开发者

extjs treenode position

开发者 https://www.devze.com 2023-02-22 10:19 出处:网络
is there any开发者_开发知识库way to find the xy position of a treenodeAssuming that you are referring to a TreeNodeUI element, all you need to do is get the underlying HTML element using Ext.get, then

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

精彩评论

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