Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-6927 in a recent build.
  1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    4
    Vote Rating
    0
    qkoatl is on a distinguished road

      0  

    Default Collapse event fires at construction time

    Collapse event fires at construction time


    Collapse event fires also at constructing phase when collapse property is set to false
    Example of a tabpanel that is south item of a border layout:

    {
    xtype: 'tabpanel',
    region: 'south',
    collapse: false,
    listeners: {
    collapse: function (self, eOpts) {
    //fires here at construction time
    }
    }
    }

    Is this a bug or a feature?
    Thank you

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,075
    Vote Rating
    467
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    I do not see this ..

    Code:
    Ext.create('Ext.tab.Panel', {
        width: 400,
        height: 400,
    collapsed: true, // even if set to true
    collapsible: true,
        renderTo: document.body,
        items: [{
            title: 'Foo'
        }, {
            title: 'Bar',
            tabConfig: {
                title: 'Custom Title',
                tooltip: 'A button tooltip'
            }
        }],
        listeners: {
            collapse: function(){
                console.log('collapse');
            }
        }
    });‚Äč
    Scott.

Thread Participants: 1

Tags for this Thread