I have a problem setting the width of each radio button in a radio group.
xtype: 'container', id: 'cntCompany', layout: 'hbox', fieldLabel: 'Company', items: [ { xtype: 'radiogroup', id: 'rdogrpCompany', items: [ { id: 'rdoIT', boxLabel: 'IT', name: 'rdoCompany', inputValue: 'IT', width: 40, checked: true }, { id: 'rdoCOMMS', boxLabel: 'COMMS', name: 'rdoCompany', width: 40, inputValue: 'Comms' }, { id: 'rdoGROUP', boxLabel: 'GROUP', name: 'rdoCompany', width: 40, inputValue: 'Group' }, { id: 'rdoALL', boxLabel: 'ALL', name: 'rdoCompany', width: 40, inputValue: 'All', margins: '0 0 0 30' } ] } ]
I set the width of each switch, but it does not work properly. Why is this radio group stretched as a single column of width and ignores the width: 40? How to set the width for each switch?
source share