【问题标题】:extjs treenode positionextjs 树节点位置
【发布时间】:2011-04-07 11:37:36
【问题描述】:

有没有办法找到树节点的 xy 位置

【问题讨论】:

    标签: extjs


    【解决方案1】:

    假设您引用的是TreeNodeUI 元素,您需要做的就是使用Ext.get 获取底层HTML 元素,然后调用getXY 方法。应该是这样的:

    var extElem = Ext.get(treeNode.getEl()); //the Ext.get may not be necessary in this case.
    var xy = extElem.getXY(); //returns [x, y]
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-12
      • 2012-05-26
      • 1970-01-01
      • 1970-01-01
      • 2013-09-04
      相关资源
      最近更新 更多