2011-04-07 123 views

回答

1

假設的xy位置,所有你需要做的就是使用Ext.get底層的HTML元素,然後調用getXY方法。它應該是這樣的:

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