1
我在一個Panel(region : west
)中有一個formPanel和兩個tabPanel。我的「TabPanel 1」具有動態高度(取決於選定的組合框),因此高度必須是自動的。 TabPanel 2不必。我試圖layout : anchor
以及佈局:{ xtype : 'vbox', align : 'stretch', pack: 'start'}
但它不工作,在一個tabpanel 1中的元件由一個tabpanel 2.Extjs 4.1 3個組件的可滾動佈局
這裏隱藏是用於面板的代碼:
var West_panel = Ext.create('Ext.Panel', {
id : 'West_panel_id',
region : 'west',
header : false,
collapsible : true,
autoScroll : true,
// layout : 'fit',
layout:{
type:"vbox",
pack:"start",
align:"stretch"
},
// autoHeight: true,
// height : 400,
width : 270,
split: true,
defaults : {
autoScroll : true
},
// items: [selectPanel,treeServices]
items: [selectPanel,tabs, tabsSouth],.....
第一個和第二個tabpanel代碼:
var tabs = new Ext.create('Ext.tab.Panel',{
activeTab: 0,
width : 270,
// anchor : '100%, 25%',
height : 400,
// autoHeight: true,
autoScroll : true,
scrollable : true,
flex : 1,
items:......
謝謝你的工作! – So4ne