有什么办法可以将ExtJS(版本4)组合框的下拉菜单的宽度设置得比实际输入框的宽度宽吗?ExtJS组合框下拉宽度比输入框宽度宽吗?
我有一个comboxbox,我想要200px左右,但我有分页结果下拉,该宽度甚至不足以显示所有分页栏的控件。
这里是我的代码来创建组合:
var add_combo = Ext.create('Ext.form.field.ComboBox',
{
id : 'gbl_add_combo',
store : Ext.create('Ext.data.Store',
{
remoteFilter : true,
fields : ['gb_id', 'title'],
proxy :
{
type : 'ajax',
url : 'index.php/store/get_items',
reader :
{
type : 'json',
root : 'records',
totalProperty : 'total',
successProperty : 'success'
},
actionMethods :
{
read : 'POST',
create : 'POST',
update : 'POST',
destroy : 'POST'
}
}
}),
listConfig:
{
loadingText: 'Searching...',
emptyText: 'No results found'
},
queryMode : 'remote',
hideLabel : true,
displayField : 'title',
valueField : 'gb_id',
typeAhead : true,
hideTrigger : true,
emptyText : 'Start typing...',
selectOnFocus : true,
width : 225,
minChars : 3,
cls : 'header_combo',
pageSize : 15
});
显示您的代码段 – Ibu 2011-05-30 19:27:15
加入我的代码的问题 – 2011-05-30 21:05:42