81,090
社区成员
发帖
与我相关
我的任务
分享
var form_customer_detail = {
xtype: 'fieldset',
title: '测试',
name: 'form_customer_detail',
bodyStyle: 'padding-left:10px;',
items: [{
layout: 'column',
items: [{
columnWidth: .3,
layout: 'form',
labelWidth: 30,
items: [{
xtype: 'combo',
fieldLabel: '测试',
mode: 'local',
value: '测试1',
allowBlank: false,
autoWidth: true,
msgTarget: 'side',
id: 'type_custome_detail',
triggerAction: 'all',
forceSelection:true,
store: new Ext.data.ArrayStore({
fields: [
'valueText',
'displayText'
],
data: [['fixed', '全部'], ['auction', '测试'],['auctions', '测试'],['auctionh', '测试']]
}),
valueField: 'valueText',
displayField: 'displayText',
anchor: '95%'
}]
}]
}]
};
<script type="text/javascript" language="javascript">
Ext.onReady(function (){
var form_customer_detail = {
//xtype: 'fieldset',
title: '测试',
name: 'form_customer_detail',
bodyStyle: 'padding-left:10px;',
autoHeight : true,
autoWidth : true,
items: [{
layout: 'column',
items: [{
columnWidth: .3,
layout: 'form',
labelWidth: 30,
items: [{
xtype: 'combo',
fieldLabel: '测试',
mode: 'local',
value: '测试1',
listWidth : 123,
allowBlank: false,
autoWidth: true,
msgTarget: 'side',
id: 'type_custome_detail',
triggerAction: 'all',
forceSelection:true,
store: new Ext.data.ArrayStore({
fields: [
'valueText',
'displayText'
],
data: [['fixed', '全部'], ['auction', '测试'],['auctions', '测试'],['auctionh', '测试']]
}),
valueField: 'valueText',
displayField: 'displayText',
anchor: '95%'
}]
}]
}]
};
var panel_customerdetail = new Ext.Panel({
layout:'form',
items:[form_customer_detail]
});
panel_customerdetail.render(document.body);
});
</script>
var form_customer_detail = {
//xtype: 'fieldset',
title: '测试',
name: 'form_customer_detail',
bodyStyle: 'padding-left:10px;',
autoHeight : true,
autoWidth : true,
items: [{
layout: 'column',
items: [{
columnWidth: .3,
layout: 'form',
labelWidth: 30,
items: [{
xtype: 'combo',
fieldLabel: '测试',
mode: 'local',
value: '测试1',
listWidth : 123,
allowBlank: false,
autoWidth: true,
msgTarget: 'side',
id: 'type_custome_detail',
triggerAction: 'all',
forceSelection:true,
store: new Ext.data.ArrayStore({
fields: [
'valueText',
'displayText'
],
data: [['fixed', '全部'], ['auction', '测试'],['auctions', '测试'],['auctionh', '测试']]
}),
valueField: 'valueText',
displayField: 'displayText',
anchor: '95%'
}]
}]
}]
};
var panel_customerdetail = new Ext.Panel({
layout:'border',
items:[form_customer_detail]
});
{
xtype : 'combo',
id : 'eventid',
hiddenName : 'symptomsdetect.eventid',
fieldLabel : '关联事件',
listWidth : 123,
width : 125,
minHeight : 200,
selectOnFocus : true,
mode : 'remote',
triggerAction : 'all',
editable : false,
store : eventStore,
displayField : 'eventname',
valueField : 'eventid',
autoLoad : true
}
你没有设置它的宽度listWidth : 123