View Full Version : panel position of treepanel node
strattonbrazil
12 Nov 2012, 3:35 PM
Is there a way to determine the (x,y) pixel position of a node in a treepanel in relation to the panel element?
tvanzoelen
13 Nov 2012, 1:48 AM
The element of the node can be retrieved by
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();
}
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.