1. #1
    Sencha User
    Join Date
    Feb 2011
    Posts
    174
    Answers
    10
    Vote Rating
    1
    netemp is on a distinguished road

      0  

    Default Answered: Can child not have column layout if parent (or any of its ancestor) has hbox layout?

    Answered: Can child not have column layout if parent (or any of its ancestor) has hbox layout?


    Following code has been created by modifying one of the examples:


    Code:
    
    Ext.onReady(function () {
    	Ext.create('Ext.panel.Panel', {
    		title: 'HBox Layout - Column Layout',
    		width: 350,
    		height: 250,
    		layout:'hbox',// 1 - MAIN PANEL layout is HBOX
    		items: [
    			{
    				xtype:'container',
    				layout:'column',// 2 - CONTAINER layout is COLUMN
    				items:[
    					{
    						title: 'Column 1',
    						columnWidth: 0.25
    					},{
    						title: 'Column 2',
    						columnWidth: 0.55
    					},{
    						title: 'Column 3',
    						columnWidth: 0.20
    					}
    				]
    			}
    		],
    		renderTo: Ext.getBody()
    	});
    });

    The above code does not display any of the child panels (Column1, Column2 or Column3) unless we change the layout Main Panel from HBox to something else.


    This is true even if there is one more component present in between Main Panel and Container with layout different from hbox.


    It seems that if any of the component has a layout of HBox then neither its children nor any child of its children is allowed to have a column layout. Is this correct or are we doing something wrong here?


    Could anyone guide at this?

    Thanks in advance.

  2. Your problem is that you're not setting a size for your child container

  3. #2
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,337
    Answers
    101
    Vote Rating
    75
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Your problem is that you're not setting a size for your child container

  4. #3
    Sencha User
    Join Date
    Feb 2011
    Posts
    174
    Answers
    10
    Vote Rating
    1
    netemp is on a distinguished road

      0  

    Default


    Yeah Agreed. Realized the same later.

    Thanks for the time though Jay.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar