1 Reply Latest reply on Sep 27, 2010 9:45 AM by gengwang

    Accordion problem: child not display first time added

    gengwang

      I have an mx Accordion that I extend to add some simple functionality (e.g., replace a child content at certain index). I tested it in a clean window and everything seemed to work fine, until I use it in my "real" app.

       

      The problem is when I add a child content to it, the child never bothers to show up until after I click on another header and then go back to click on the header of the child that was just added. I try to call "invalidateParentSizeAndDisplayList();invalidateDisplayList(); invalidateSize();" in the child content's addhandler, and on the Accordion's "childAdd" handler, without luck.

       

      Anyone has encountered this before? This is probably not the best place to ask for troubleshooting tips but this is really driving me crazy. Any lead is really appreciated!