extjs5.1 toolBar items之间间隔太大 5
不知道为什么间隔这么大把后面的内容都挤没了,代码如下:dockedItems:[{xtype:'toolbar',itemId:'ctnComplyDisDetailCh...
不知道为什么间隔这么大把后面的内容都挤没了,代码如下:
dockedItems: [{
xtype: 'toolbar',
itemId: 'ctnComplyDisDetailChartBottomToolbar',
dock: 'bottom',
layout: {
type: 'hbox',
align: 'middle',
pack: 'start'
},
items: [
'<b>Add Manual Adjustment:<b>',
'->',
{
xtype: 'datefield',
id: 'cmp-ComplyDisDetailToolbarDate',
itemId: 'cmpComplyDisDetailToolbarDate',
cls: 'tbarfields',
// margin: '0 0 0 0',
emptyText: 'Effective Date',
format: 'm/d/Y',
maxValue: new Date(),
maxLength: 10,
enforceMaxLength: true
},
// '->',
{
xtype: 'textfield',
id: 'cmp-ComplyDisDetailToolbarQuantity',
itemId: 'cmpComplyDisDetailToolbarQuantity',
cls: 'tbarfields',
emptyText: 'Adj Quantity',
//width: 100,
maxLength: 50,
enforceMaxLength: true
},
// '->',
{
xtype: 'combobox',
multiSelect: false,
itemId: 'cmpComplyDisDetailToolbarReason',
cls: 'tbarfields',
emptyText: 'Reason',
valueField: 'text',
displayField: 'text',
//width: 250,
editable: true,
store: {
fields: [{name: 'text',type: 'string'}],
data: [{text: 'Purchase from Special Vendor'},
{text: 'Drug Expiration'},
{text: 'Controlled Substance'},
{text: '304B/504B Drug'},
{text: 'Other'}
]
}
},
// '->',
{
xtype: 'textfield',
itemId: 'cmpComplyDisDetailToolbarNote',
cls: 'tbarfields',
emptyText: 'Note',
//width: 300,
maxLength: 200,
enforceMaxLength: true
},
// '->',
{
text: 'Submit',
xtype: 'button',
itemId: 'cmpComplyDisDetailToolbarSubmit',
handler: function(button, e, eOpts){
}
}
]
}], 展开
dockedItems: [{
xtype: 'toolbar',
itemId: 'ctnComplyDisDetailChartBottomToolbar',
dock: 'bottom',
layout: {
type: 'hbox',
align: 'middle',
pack: 'start'
},
items: [
'<b>Add Manual Adjustment:<b>',
'->',
{
xtype: 'datefield',
id: 'cmp-ComplyDisDetailToolbarDate',
itemId: 'cmpComplyDisDetailToolbarDate',
cls: 'tbarfields',
// margin: '0 0 0 0',
emptyText: 'Effective Date',
format: 'm/d/Y',
maxValue: new Date(),
maxLength: 10,
enforceMaxLength: true
},
// '->',
{
xtype: 'textfield',
id: 'cmp-ComplyDisDetailToolbarQuantity',
itemId: 'cmpComplyDisDetailToolbarQuantity',
cls: 'tbarfields',
emptyText: 'Adj Quantity',
//width: 100,
maxLength: 50,
enforceMaxLength: true
},
// '->',
{
xtype: 'combobox',
multiSelect: false,
itemId: 'cmpComplyDisDetailToolbarReason',
cls: 'tbarfields',
emptyText: 'Reason',
valueField: 'text',
displayField: 'text',
//width: 250,
editable: true,
store: {
fields: [{name: 'text',type: 'string'}],
data: [{text: 'Purchase from Special Vendor'},
{text: 'Drug Expiration'},
{text: 'Controlled Substance'},
{text: '304B/504B Drug'},
{text: 'Other'}
]
}
},
// '->',
{
xtype: 'textfield',
itemId: 'cmpComplyDisDetailToolbarNote',
cls: 'tbarfields',
emptyText: 'Note',
//width: 300,
maxLength: 200,
enforceMaxLength: true
},
// '->',
{
text: 'Submit',
xtype: 'button',
itemId: 'cmpComplyDisDetailToolbarSubmit',
handler: function(button, e, eOpts){
}
}
]
}], 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询