Threaded View

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    38
    Vote Rating
    1
    howHardCanItBe is on a distinguished road

      0  

    Default Answered: nested panels are not displayed

    Answered: nested panels are not displayed


    Hi, I am trying to create a container or panel with some toolbars and six content areas. The toolbars are displaying fine, but the panels are not. What am I missing?

    Code:
    Ext.application({
        name: 'test app',
        launch: function () {
    
    
            Ext.create('Ext.Container', {
                fullscreen: true,
                layout: 'vbox',
                items: [
                    {
                        xtype: 'toolbar',
                        dock: 'top'
                    },
                    {
                        xtype: 'panel',  
                        //fullscreen: 'true',                  
                        layout: 'fit',
                        item: [
                            {
                                xtype: 'panel',
                                flex: 1,
                                items: [
                                    {
                                        xtype: 'panel',
                                        dock: 'left',
                                        items: [{
                                            html: "blah blah blah"
                                        }]
                                    },
                                    {
                                        xtype: 'panel',
                                        items: [{
                                            html: "blah blah blah"
                                        }]
                                    }
                                ]
                            },
                            {
                                xtype: 'panel',
                                flex: 1,
                                items: [
                                    {
                                        xtype: 'panel',
                                        dock: 'left',
                                        items: [{
                                            html: "blah blah blah"
                                        }]
                                    },
                                    {
                                        xtype: 'panel',
                                        items: [{
                                            html: "blah blah blah"
                                        }]
                                    }
                                ]
                            },
                            {
                                xtype: 'panel',
                                flex: 1,
                                items: [
                                    {
                                        xtype: 'panel',
                                        dock: 'left',
                                        items: [{
                                            html: "blah blah blah"
                                        }]
                                    },
                                    {
                                        xtype: 'panel',
                                        items: [{
                                            html: "blah blah blah"
                                        }]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        xtype: 'toolbar',
                        dock: 'bottom'
                    }
                ]
            });
    
    
    
    
            }
        }
    
    
    });

  2. You need to use layouts better. Here is your code with many comments:

    Code:
    Ext.create('Ext.Container', {
        fullscreen: true,
        layout: {
            type : 'vbox',
            align : 'stretch'
        },
        items: [
            {
                xtype: 'toolbar',
                docked: 'top' //use docked not dock
            },
            {
                xtype: 'panel',
                //layout: 'fit', //this will only allow one child to be shown, use box or card layout
                layout : {
                    type  : 'vbox',
                    align : 'stretch'
                },
                flex : 1,
                items: [    //typo, was 'item' but should be 'items'
                    {
                        xtype: 'panel',
                        flex: 1,
                        layout : 'fit', //needed a layout
                        items: [
                            {
                                xtype: 'panel',
                                docked: 'left', //use docked instead of dock
                                layout : 'fit', //needed a layout, or set the html to the panel and no children
                                width : 100, //needed a width
                                items: [{
                                    html: "blah blah blah"
                                }]
                            },
                            {
                                xtype: 'panel',
                                layout : 'fit', //needed a layout, or set the html to the panel and no children
                                items: [{
                                    html: "blah blah blah"
                                }]
                            }
                        ]
                    },
                    {
                        xtype: 'panel',
                        flex: 1,
                        layout : 'fit', //needed a layout
                        items: [
                            {
                                xtype: 'panel',
                                docked: 'left', //use docked instead of dock
                                layout : 'fit', //needed a layout, or set the html to the panel and no children
                                width : 100, //needed a width
                                items: [{
                                    html: "blah blah blah"
                                }]
                            },
                            {
                                xtype: 'panel',
                                layout : 'fit', //needed a layout, or set the html to the panel and no children
                                items: [{
                                    html: "blah blah blah"
                                }]
                            }
                        ]
                    },
                    {
                        xtype: 'panel',
                        flex: 1,
                        layout : 'fit', //needed a layout
                        items: [
                            {
                                xtype: 'panel',
                                docked: 'left', //use docked instead of dock
                                layout : 'fit', //needed a layout, or set the html to the panel and no children
                                width : 100, //needed a width
                                items: [{
                                    html: "blah blah blah"
                                }]
                            },
                            {
                                xtype: 'panel',
                                layout : 'fit', //needed a layout, or set the html to the panel and no children
                                items: [{
                                    html: "blah blah blah"
                                }]
                            }
                        ]
                    }
                ]
            },
            {
                xtype: 'toolbar',
                docked: 'bottom' //use docked not dock
            }
        ]
    });

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi