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

  3. #2
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,114
    Answers
    83
    Vote Rating
    30
    tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about

      0  

    Default


    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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi