实际应用中如何将放在TabPanel中的panel(可以使任何panel的子类)适应TabPanel的高度和宽度

我们可以考虑border布局

var panel=Ext.create('Ext.panel.Panel', {
        itemId: 'pnl_vbox',
          region: 'center',
        layout: {
            type: 'vbox',
            align: 'stretch'
        }

})

Ext.create('Ext.panel.Table', {

            itemId: ‘id’,

            title: ‘test’,

            items: [{

               title: 'First tab',

               layout:'border',

                 items: [panel]

                 }]

})

相关文章:

  • 2021-12-27
  • 2021-09-26
  • 2022-12-23
  • 2021-09-20
  • 2021-05-19
  • 2021-12-18
  • 2021-06-12
  • 2021-11-19
猜你喜欢
  • 2021-07-04
  • 2021-07-12
  • 2022-12-23
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案