Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Accordion and dynamic content #4645

Closed
renatotkr opened this issue Oct 16, 2015 · 7 comments
Closed

Accordion and dynamic content #4645

renatotkr opened this issue Oct 16, 2015 · 7 comments

Comments

@renatotkr
Copy link

I have an accordion on my page and the body content is rendered dynamically via ajax when the user clicks on the accordion heading. The problem is that the height gets fixed when I first click on the heading. After the content loads, accordion does not resize properly . Is there a way to set the height to auto?

image

@AWolf81
Copy link

AWolf81 commented Oct 16, 2015

Please have a look at this SO question where I added an answer to the same issue a minute ago.

I don't know how to fix that with the latest version of ui.bootstrap, at the moment.

@AWolf81
Copy link

AWolf81 commented Oct 16, 2015

I think I've found the point why it is not working. ngAnmiate is required as dependency of your app as collapse directive needs it to work.

This commit has changed the animations and dynamic content behavior.

That point is not mentioned in the docs and should be added.

@Foxandxss
Copy link
Contributor

No. ngAnimate was added lot ago (for a 0.13.x version).

You can use this library without ngAnimate, you just will lose the animation.

Do you have any plunker with the latest version where I Can see that problem you say? Thank you.

@AWolf81
Copy link

AWolf81 commented Oct 16, 2015

here is the plunkr from the mentioned SO question (it uses the latest version).

@Foxandxss
Copy link
Contributor

I can see that. Thanks.

@icfantv
Copy link
Contributor

icfantv commented Oct 17, 2015

I'm pretty sure this is related to #4561.

@Foxandxss
Copy link
Contributor

100% related. Closing this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants