【发布时间】:2015-12-14 17:39:29
【问题描述】:
我需要将组合框标签添加到一行。我正在使用 extjs3。
代码:
var orq_type_button= new Ext.form.ComboBox({
id:'testa',
fieldLabel: 'Organization Type',
editable:false,
emptyText:'Empty',
selectOnFocus:true,
forceSelection: true,
allowBlank: false,
width: 350,
labelWidth: 330,
});
var assignConfig_window_formPanal = new Ext.form.FormPanel ({
id:'assignConfig_window_formPanal',
frame:true,
bodyStyle:'padding:5px 5px 0',
height:110,
buttonAlign:'center',
items: [orq_type_button],
buttons: [ {text: 'Save'} ,
{text: 'Cancel',
handler : function() {
assignConfig_window.hide();
}
}
]
});
截图:
【问题讨论】:
-
增加
labelWidth或动态调整大小,参考this answer
标签: javascript extjs web-deployment extjs3