PDA

View Full Version : [4.1-pr1] Radiogroups in fieldcontainer error



slemmon
27 Oct 2011, 8:15 AM
Below is a code snippet from an existing project working with 4.0.7 that lays out with errors in 4.1-pr1. Bug? Perhaps I could use a different layout setup instead?

In 4.0.7 the fieldcontainer's height is correct.
In 4.1-pr1 the fieldcontainer is not tall enough and cuts off part of the last radio in the second group.
*see attached screenshot

Tested in:
IE 8
FF 5


Ext.create('Ext.form.Panel', {
renderTo: Ext.getBody()
, title: 'Test form'
, height: 300
, width: 450
, items: [{
xtype: 'fieldcontainer'
, padding: '7 0 0 7'
, layout: 'hbox'
, defaults: {
flex: 1
, labelAlign: 'top'
}
, items: [{
xtype: 'radiogroup'
, fieldLabel: 'Contract Type'
, itemId: 'contractTypeRadios'
, columns: 1
, defaults: {
name: 'CONTRACT_TYPE'
}
, items: [{
boxLabel: 'New'
, inputValue: 'new'
, checked: true
}, {
boxLabel: 'Renewal'
, inputValue: 'renewal'
}, {
boxLabel: 'Winback'
, inputValue: 'winback'
}]
}, {
xtype: 'radiogroup'
, fieldLabel: 'Contract Term'
, itemId: 'contractTermRadios'
, columns: 1
, defaults: {
name: 'CONTRACT_TERM'
}
, items: [{
boxLabel: '12 Months'
, inputValue: '12mo'
, checked: true
}, {
boxLabel: '24 Months'
, inputValue: '24mo'
}, {
boxLabel: '36 Months'
, inputValue: '36mo'
}, {
boxLabel: '60 Months'
, name: 'CONTRACT_TERM'
, inputValue: '60mo'
}]
}]
}]
})