-
1 Aug 2012 7:37 AM #1
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
-
1 Aug 2012 7:55 AM #2
I do not see this ..
Scott.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'); } } });
Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJSIV-6927
in
4.1.2.


Reply With Quote