REQUIRED INFORMATION

Sencha Touch version tested:
  • Sencha Touch 2.0.2
Browser versions tested against:
  • Chrome 20.0.1123.4 dev
  • Safari Version 5.1.7 (7534.57.2, r122160)
Description:
  • Calling setTitle() on a FieldSet with an existing title will result in an error.
Steps to reproduce the problem:
  • Create an Ext.form.FieldSet
  • Set an initial title (either in config object or by setTitle() method)
  • Set a new title by calling setTitle() method
The result that was expected:
  • new title should be displayed
The result that occurs instead:
  • TypeError: 'undefined' is not a function (evaluating 'instance.setConfig(config)')
Test Case:
Code:
Ext.application({
    
    name: 'BugReport',


    requires: [
        'Ext.MessageBox',
        'Ext.form.Panel',
        'Ext.form.FieldSet'
    ],


    launch: function() {
        
        var integer = 0;
        
        // Destroy the #appLoadingIndicator element
        Ext.fly('appLoadingIndicator').destroy();


        // Add elements to viewport
        Ext.Viewport.add(new Ext.form.Panel({
            items: [
                {
                    xtype: 'fieldset',
                    id: 'fieldset',
                    //title: 'blah'
                },
                {
                    xtype: 'button',
                    text: 'set title',
                    handler: function() {
                        var title = 'foobar ' + integer;
                        console.log('setting title to ' + title);
                        Ext.getCmp('fieldset').setTitle(title);
                        integer++;
                    } 
                }
            ]
        }));
    },


});

HELPFUL INFORMATION

See this URL for live test case:
Debugging already done:
  • none
Possible fix:
  • not provided
Operating System:
  • Linux