Threaded View
-
12 Nov 2012 3:35 PM #1
Answered: panel position of treepanel node
Answered: panel position of treepanel node
Is there a way to determine the (x,y) pixel position of a node in a treepanel in relation to the panel element?
-
Best Answer Posted by tvanzoelen
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(); }


Reply With Quote