layout - Sencha ExtJS - nest a 100% height BorderLayout inside a VBoxLayout -


i trying put borderlayout inside vboxlayout, , having borderlayout 100% height. try:

ext.create('ext.container.viewport', { layout : 'fit', items : [     ext.create('ext.panel.panel', {         width: '100%',         layout: {             type: 'vbox',             align: 'stretch'         },         items: [             ext.create('ext.panel.panel', {                 flex: 0,                 height: 200,                 layout: 'border',                 items: [                     ext.create('ext.panel.panel', {                         title: 'toto',                         region: 'center'                     })                 ]             })         ]     })  ]                            }); 

it works well, if replace height: 200 height:'100%', not see anything. doing wrong?

thanks help!

(ps: vboxlayout requirement, application more complex example, , cannot change vboxlayout).

i think must change form flex:0 flex:1


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -