Threaded View

  1. #1
    Sencha User
    Join Date
    Jan 2011
    Posts
    10
    Vote Rating
    0
    strattonbrazil is on a distinguished road

      0  

    Default 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?

  2. 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();
    }

Thread Participants: 1

Tags for this Thread