FairyGUI.TreeView.AfterExpanded C# (CSharp) Method

AfterExpanded() private method

private AfterExpanded ( FairyGUI.TreeNode node ) : void
node FairyGUI.TreeNode
return void
        internal void AfterExpanded(TreeNode node)
        {
            if (node != root && treeNodeWillExpand != null)
                treeNodeWillExpand(node, true);

            if (node.cell == null)
                return;

            if (node != root)
            {
                if (treeNodeRender != null)
                    treeNodeRender(node);

                GButton expandButton = (GButton)node.cell.GetChild("expandButton");
                if (expandButton != null)
                    expandButton.selected = true;
            }

            if (node.cell.parent != null)
                CheckChildren(node, list.GetChildIndex(node.cell));
        }