You can add an onComplete method on accordion to set the section's height to
"auto" so that the flow is restored (this is what I do).

On Tue, Jul 21, 2009 at 2:29 AM, sylver <[email protected]> wrote:

>
> Hi,
>
> I'm fairly new to Mootools, please be kind :D
>
> I have an Accordion running with some branches. Each branch may be
> populated over time, with a code similar to this:
>
> branch.appendChild(aNewDivNode)
>
> Whenever I did that, and make the last DIV I added to be somewhere
> near the top of the branch, the last child inside the branch will be
> hidden, because the branch's height didn't expand to compensate the
> newly added DIV.
>
> From what I can see, Accordion uses FX.Tween, i.e. when user clicked
> on a closed branch to open it. How can I call FX.Tween from within
> Accordion, to expand the branch's height on the fly?
>
> Thanks :D
>

Reply via email to