Here is my code which I have used to align the selectfield and label in a same row, But it's not fitting like other textfields, here is the screen shot:
As like location and shop label name when I try with the category it's not fitting, Here is the code,
{
xtype: 'textfield',
name : 'password',
placeHolder : 'Add location',
label: 'Location',
id:'txtshopurl',
useClearIcon: true
}
{
xtype:'container',
layout:'hbox',
items:[{
xtype: 'label',
html: '<font size="2">Category</font>'
},
{
xtype: 'selectfield',
name: 'category',
width: 150,
options:[{text:'None(Default)',value:'D'},{text:'Birthday',value:'B'},{text:'Christmas',value:'C'},{text:'Aniversery',value:'A'},{text:'Wedding',value:'W'},{text:'Other',value:'O'}]
}]
}
{
xtype: 'textfield',
name : 'Shopcategory',
placeHolder : ' Shop name or URL',
label: 'Shop Name',
useClearIcon: true
}
How do I align the category label and the select field in a same row?