Мне нужно получить метку combo-box в одну строку. Я использую extjs3.extjs 3 ширина прямоугольника и ширина поля ввода
Код:
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' или для динамической калибровки, см [этот ответ] (http://stackoverflow.com/questions/18791661/autosizing-textfield-label-in-extjs) – User528491