PDA

View Full Version : [2.0a1] Accordion panels remain open



Bluezik
4 Oct 2007, 4:18 AM
Hello,

I'm really excited about this new version... but still, I've found a bug in the accordion widget with Firefox 2.0 or Safari (MacOS).

With the demo accordion code :


var accordion = new Ext.Panel({
title: 'Accordion Layout',
layout:'accordion',
defaults: {
// applied to each contained panel
bodyStyle: 'padding:15px'
},
layoutConfig: {
// layout-specific configs go here
titleCollapse: false,
animate: true,
activeOnTop: true
}
items: [{
title: 'Panel 1',
html: '<p>Panel content!</p>'
},{
title: 'Panel 2',
html: '<p>Panel content!</p>'
},{
title: 'Panel 3',
html: '<p>Panel content!</p>'
}]
});

If animate is true, clicking quickly on 2 collapsed panels will open both of them... and keep them open.

Hope it will help...

Matthieu.

jack.slocum
4 Oct 2007, 5:39 AM
animate true and activeOnTop are not compatible. I will update the docs to reflect that.

Bluezik
4 Oct 2007, 8:11 AM
Thanks for your answer.

But it doesn't seem to be the problem. Even if I set activeOnTop to false, it seems that trying to expand a panel in the accordion while another panel is expanding (with an animation) results in two opened panels (see attachment).

Thanks!

Matthieu.