1. #1
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,795
    Vote Rating
    167
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default [4.1-pr1] Radiogroups in fieldcontainer error

    [4.1-pr1] Radiogroups in fieldcontainer error


    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

    Code:
    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'
                }]
            }]
        }]
    })
    Attached Images