PDA

View Full Version : [FIXED] [4.1.3] Accordion With Delayed Add Expands Too Many Groups



ZachG
7 Nov 2012, 2:09 PM
REQUIRED INFORMATION




Ext version tested:

Ext 4.1.3.548


Browser versions tested against:

Chrome


Description:

An window is created with an accordion layout.
One second later, four panels are added to it.
In 4.1.2 and before, this would expand the first and collapse the rest.
In 4.1.3, all four are expanded. No matter what you collapse, there will always be at least two expanded.


Steps to reproduce the problem:

Go to the Feed Viewer example in 4.1.2 and 4.1.3.
Run the code below


The result that was expected:

It would behave like 4.1.2


The result that occurs instead:

Nope


Test Case:




Ext.onReady(function() {
var win;

win = Ext.create("Ext.window.Window", {
width:500,
height:500,
layout:"accordion"
});

win.show();

setTimeout(function() {
win.add(
{
xtype:"panel",
html:"1"
},
{
xtype:"panel",
html:"2"
},
{
xtype:"panel",
html:"3"
},
{
xtype:"panel",
html:"4"
}
);
}, 1000);
});

kevin.chen
7 Nov 2012, 2:51 PM
I also can reproduce it in firefox

kevin.chen
7 Nov 2012, 2:51 PM
Thanks for the report! I have opened a bug in our bug tracker.

andreasn
5 Dec 2012, 10:06 AM
I couldn't find any fix in the nightly builds. Could someone prove if its really fixed or post a bugfix?

ZachG
5 Dec 2012, 10:17 AM
Says it's fixed in 4.2. My nightly builds are for 4.1.