1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    7
    Vote Rating
    0
    dragem is on a distinguished road

      0  

    Default Unanswered: Treepanel in panel not showing the tree

    Unanswered: Treepanel in panel not showing the tree


    does anyone know why this isn't working?

    Code:
    var mainPanel = Ext.create('Ext.panel.Panel', {        
            id: 'mainPanel',
            width: '100%',
            height: '100%',
            layout: 'border',
            collapsible: false,
            renderTo: Ext.getBody(),
            items: [
                {
                    xtype: 'treepanel',
                    id:'naviPanel',
                    tbar: toolbar,
                    width: 250,
                    height: '100%',
                    region: 'west',
                    collapsible: false,
                    useArrows: true,
                    rootVisible: false,
                    store: naviStore,
                    multiSelect: true,
                    singleExpand: true
                },{
                    xtype: 'panel',
                    id:'contentPanel',
                    width: 500,
                    height: '100%',
                    region: 'center',
                    collapsible: false
                }
            ]
        });

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,085
    Answers
    675
    Vote Rating
    467
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    You are not specifying a height for your mainPanel. You are specify '100%' instead of height: 400
    If you want a panel the size of your client window, use Viewport.

    Viewport automatically renders to body, so there is no need to included that.

    Scott.

Thread Participants: 1

Tags for this Thread