PDA

View Full Version : Disable accordion animation



Rencom
5 Mar 2010, 2:47 PM
I've created accordion like this:


layout:'accordion',
layoutConfig:{
animate:true
}


then i add elements by add() method, then re-render it with doLayout() and set the activeItem:

navigation_panel.getComponent(1).expand(false);

i call expand() method with `false` parameter, but it still animates the transition, so it takes setting from main layout and ignore that i sent to expand(). How to solve this problem?

Rencom
5 Mar 2010, 10:05 PM
i solve my problem with this manipulation:


var layout = navigation_panel.getLayout();
layout.animate = false;
navigation_panel.getComponent(1).expand(false);
layout.animate = true;