PDA

View Full Version : Panel forceLayout problem



wickedsheep
13 Aug 2010, 12:33 AM
Hi, I have the following problem.

I have a parent Panel configured with accordion layout and after my app loads, I dynamicly add some child panels (as accordions). Everything works fine, but now, I'd like them to render after the add-even if they are hidden.

I tried forceLayout configuration option on each child panel, and I even attached an event listener to it, but nothing seems to work. The event is fired, but the panel still renders after I click on the accordion.



...
listeners: {
'added': function( c ) {
c.doLayout();
}
}
...
Any thoughts? I'm still looking in the docs if I missed something. Thanks for your help.