1. #1
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Germany, Frankfurt
    Posts
    142
    Vote Rating
    1
    enpasos is on a distinguished road

      0  

    Default [4.1 b2] TreeNode - moved nodes - layout issue

    [4.1 b2] TreeNode - moved nodes - layout issue


    I moved nodes to a node (skillpilot) which was empty before. I get

    movednodes.PNG

    but it should be

    movednodes2.PNG

    I already reported similar issues. This seams to be a systematical problem. Please, help.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,329
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Was skillpilot node a leaf before you moved nodes to it? Is there a test case you have that I can run?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Germany, Frankfurt
    Posts
    142
    Vote Rating
    1
    enpasos is on a distinguished road

      0  

    Default


    Thanks for helping.

    You can reproduce the issues I see by pasting the following code into
    Code:
    ext-4.1.0-beta-2/docs/index.html#!/api/Ext.tree.Panel
    CodeEditor.
    Code:
    var store = Ext.create('Ext.data.TreeStore', {
        root: {
            expanded: true,
            children: [
                { text: "a", expandable: false, expanded: false},
                { text: "b", expanded: true, children: [
                    { text: "c", expandable: false, expanded: false},
                    { text: "d", expandable: false, expanded: false}
                ] },
                { text: "e", expandable: false, expanded: false}
            ]
        }
    });
    
    Ext.create('Ext.tree.Panel', {
        title: 'Simple Tree',    viewConfig: { 
            plugins: {
                ptype: 'treeviewdragdrop',
                appendOnly: true
            }
        },
        width: 200,
        height: 150,
        store: store,
        rootVisible: false,
        renderTo: Ext.getBody()
    });
    and then drag-n-dropping nodes.

  4. #4
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Germany, Frankfurt
    Posts
    142
    Vote Rating
    1
    enpasos is on a distinguished road

      0  

    Default


    Do I need to handle the expandable Properties on a move for the old and new parent myself?

Thread Participants: 1