我的代码:
{
border: 1,
bodyStyle: 'margin:0 0 0 140px;',
style: {
borderColor: 'black',
borderStyle: 'solid', //margin:'0 0 0 140' //margin-left: '140px' }, width: 140, name: 'comp', id:'compId', triggerAction: 'all', mode: 'local', store: new Ext.data.SimpleStore({
fields: ['myId', 'displayText'],
data: [
[1, 'item1'],
[2, 'item2']
]
}), displayField: 'displayText', xtype: 'combo',
},
在Ext js 2.3中bodyStyle没有被附加到组合框中。有人能建议如何解决这个问题吗?
谢谢
3条答案
按热度按时间kcrjzv8t1#
我想这可能是你需要的。
请注意,根据文档-http://docs.sencha.com/extjs/2.3.0/#!/api/Ext.form.组合框,没有bodyStyle配置选项
我删除了宽度选项,就像左边距样式属性(也是140 px)一样,我想你可能会得到一些奇怪的东西。
ut6juiuv2#
组合. js:
combo.css:
z8dt9xmd3#
这是在2.3版本中使用bodyStyle属性的代码之一,这可能会对您有所帮助。