Results 1 to 3 of 3

Thread: Tree nodes not aligned

  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    61
    Vote Rating
    0
      0  

    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

  2. #2
    Sencha User
    Join Date
    Mar 2010
    Posts
    61
    Vote Rating
    0
      0  

    Default solved..body element had css with 'text-align' center..

    However, there should be a way to override the body-element's text-align property and not let it affect the tree's rendering properties.

  3. #3
    Sencha User
    Join Date
    May 2010
    Posts
    21
    Vote Rating
    0
      0  

    Default

    what do you mean by body element ? where is it ?

Posting Permissions

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