布局的合理利用:
如图:
[img]http://dl.iteye.com/upload/attachment/0082/0500/1fc27d18-aefb-3107-86e1-563e0ca65687.png[/img]
如图:
[img]http://dl.iteye.com/upload/attachment/0082/0500/1fc27d18-aefb-3107-86e1-563e0ca65687.png[/img]
{
xtype:'container',
margins:'5 0 0 0',
layout:{
align:'stretch',
type:'hbox'
},
items:[
{
xtype:'fieldcontainer',
margins:'5 0 0 0',
fieldLabel:'AAAA',
combineErrors: true,
labelWidth: 130,
labelAlign: 'right',
flex:1,
defaults:'hideLabel: true',
layout:{
align:'stretch',
type:'hbox'
},
items:[
{
xtype:'textfield',
flex:1
},
{
xtype:'displayfield',
margins: '0 5 0 5',
value:'至'
},
{
xtype:'textfield',
flex:1
}
]
},
{
xtype:'fieldcontainer',
margins:'5 0 0 0',
fieldLabel:'BBBB',
combineErrors: true,
labelWidth:130,
labelAlign:'right',
flex:1,
defaults:'hideLabel: true',
layout:{
align:'stretch',
type:'hbox'
},
items:[
{
xtype:'textfield',
flex:1
},
{
xtype:'displayfield',
margins: '0 5 0 5',
value:'至'
},
{
xtype:'textfield',
flex:1
}
]
}
]
}