题
我想创建一个应用程序,其中组合框应如下图所示。但是当我使用一个列表的组合框时,它看起来像第二个图像。列表未完全显示 - 它被剪切。请建议我使用哪个属性?代码如下:
items: [{
xtype: 'combobox',
fieldLabel: 'Location',
displayField: 'name',
forceSelection: true,
pageSize: 10,
store: 'SalesOrderManager.store.LocationStore',
typeAhead: true,
valueField: 'id',
id: 'LocationComboBox'
}]
.
它应该是什么样的:
我得到的是什么:
解决方案
你在谈论选择器宽度吗?我想你想要:
matchFieldWidth: false,
listConfig: {
width: 250
}
. 不隶属于 StackOverflow