Results 1 to 3 of 3

Thread: Tree nodes not aligned

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Tree nodes not aligned

    var
    treePanel = new Ext.Panel({
    layout:
    'auto'

    });

    var Tree = Ext.tree;
    var tree = new Tree.TreePanel({
    animate:
    true,
    autoScroll:
    true,
    loader:
    new Tree.TreeLoader({dataUrl:'http://localhost:8080/static/get-nodes.txt'}),
    enableDD:
    true,
    containerScroll:
    true,
    border:
    false,
    height:900,
    lines:
    false,
    dropConfig: {appendOnly:
    true},
    forceLayout:
    true,
    useArrows:
    true

    });

    // add a tree sorter in folder mode

    new Tree.TreeSorter(tree, {folderSort:true});

    // set the root node

    var root = new Tree.AsyncTreeNode({
    text:
    'LearningTree',
    draggable:
    false, // disable root node dragging

    id:
    'src',
    children: json
    });

    tree.setRootNode(root);
    tree.expand();

    treePanel.add(tree);
    Attached Images Attached Images

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •