惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
宝玉的分享
宝玉的分享
MyScale Blog
MyScale Blog
The GitHub Blog
The GitHub Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
月光博客
月光博客
量子位
博客园 - 司徒正美
V
V2EX
I
InfoQ
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
美团技术团队
N
Netflix TechBlog - Medium
L
LangChain Blog
IT之家
IT之家
Blog — PlanetScale
Blog — PlanetScale
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow Blog
A
About on SuperTechFans
Microsoft Azure Blog
Microsoft Azure Blog

博客园 - Koy

vbox 安装 MacOS 时遇到的问题 转载:登录后,用户配置被修改的处理方法 left join 和 inner join 区别和优化 认识位移操作符 動態修改 XML 欄位 (轉載)sql server xml字段的操作 (轉)CSS 单行溢出文本显示省略号...的方法(兼容IE FF) (轉)Equal height boxes with CSS 獲得瀏覽器顯示標簽的真實的長寬高 轉:Jquery绑定img的click事件 SqlLocalDB 的一些常用命令行 转:css实现强制不换行/自动换行/强制换行 終于解決调用wordpress 4.3 xmlrpc api 发布包含分类的文章时返回“抱歉,文章类型不支持您的分类法”错误的問題 SQL 數字欄位格式調整(輸出結果以0補至固定長度) 转载:数组Marshalling ajax 維護 div 的 scrollbar 每日构建的好工具 根據基本目錄及文件的全路逕,創建相應的子目錄,爲保存文件作準備 - Koy - 博客园 轉載:Sqlserver 2005 利用 with 創建臨時表進行遞歸查詢
修正了Flex Tree 控件在動態加載節點后 Scrollbar 沒有立即出...
Koy · 2011-09-16 · via 博客园 - Koy

2011-09-16 15:49  Koy  阅读(283)  评论()    收藏  举报

   var _loadSubFolder:Function = function(children:Array):void{
    node.children = new ArrayCollection(children);
    
    for each(var glossaryfolder:Object in node.children){
     if(glossaryfolder.child_count > 0){
      glossaryfolder.children = childrenMark; //replace the template
     }
    }
    
    //very important for showing tree scrollbar.
    var arr:Array = grpTree.openItems as Array;
    var openItems:ArrayCollection = new ArrayCollection(arr);
    for(var i:int=0;i<openItems.length;i++){
     if(openItems[i] == node){
      openItems.removeItemAt(i);
      openItems.refresh();
     }
    }
    grpTree.openItems = openItems.toArray();
    grpTree.expandItem(node, true);
    
    grpTree.invalidateList();
    grpTree.invalidateDisplayList();
   }