PDA

View Full Version : Collapsible panel with collapsed-config not working



suamikim
23 Aug 2012, 3:01 AM
Hy there,

if i use the collapsed-option of a collapsible panel it's not working anymore (the collapsed panel doesn't expand):

http://jsfiddle.net/suamikim/aSEsp/1/

Ext.onReady(function() {
Ext.create('Ext.window.Window', {
width: 300,
height: 300,

layout: {
type: 'vbox',
align: 'stretch'
},

items: [{
xtype: 'panel',
title: 'panel1',
flex: 1
},{
xtype: 'panel',
title: 'panel3',
flex: 1,

collapsible: true,
collapsed: true,
titleCollapse: true
}]
}).show();
});

If i set the collapsed to false everything is working as expected...

Is this a bug and does anybody know of a workaround?

Thanks,

mik

redraid
23 Aug 2012, 3:09 AM
add animCollapse: false
http://jsfiddle.net/aSEsp/2/

suamikim
23 Aug 2012, 4:11 AM
Perfect, thank you.

Still seems to be a bug if it's not working with the animation enabled, doesn't it?

redraid
23 Aug 2012, 4:16 AM
Looks like bug

suamikim
23 Aug 2012, 6:34 AM
Ok, i just posted an bug-report:
http://www.sencha.com/forum/showthread.php?238616-4.1.0-Collapsible-panel-with-collapsed-true-doesn-t-work-with-animation&p=875994#post875994