[Feat]: Auto Height and slide changing height #1142
-
Which variants of Embla Carousel are relevant to this feature request?
Feature descriptionCurrently it seems, that the Auto Height plugin only resizes the container on initial load or if the window is resized. But what if the content of a slide changes height (e.g. the slide contains an accordeon or a form, that displays errors on submit)? It would be great, if Embla detects this and resizes it's container accordingly, so no content is cut off. This is especially needed, if Embla is used to group general page-content into tabs. Additional ContextAdditional details here... Before submitting
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
@codeflorist thanks for your question. Try setting const options = {
watchResize: emblaApi => emblaApi.reInit(),
};Does that solve it? |
Beta Was this translation helpful? Give feedback.
@codeflorist In the upcoming
v9, this issue is handled automatically in the plugin code: link. I’m closing this.