Is there a way to determine the (x,y) pixel position of a node in a treepanel in relation to the panel element?
Printable View
Is there a way to determine the (x,y) pixel position of a node in a treepanel in relation to the panel element?
The element of the node can be retrieved by
Code:
var record = tree.getStore().getNodeById(node.internalId);
var viewNode = Ext.fly(tree.getView().getNode(record));
//in anycase get the element of the node in the view and then...
if(viewNode){
var x = viewNode.getLocalX();
var y = viewNode.getLocalY();
}