You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there is only one child, the container height is defined as 22px. (The height including the child's image is approximately 109px.)
I'm not very good at English, so I used Google Translate for help.
Related information
When there is only one child, if you do not add the autoHeight plugin to the argument of useEmblaCarousel, it will be rendered normally.
If there is a modification to the code in React development mode and it is updated, it will be rendered normally.
When there are multiple children, it seems that the height is set properly even if authHeight is used.
If applicable, which variants of Embla Carousel are relevant to this question?
embla-carousel (Core)
embla-carousel-react
embla-carousel-vue
embla-carousel-svelte
embla-carousel-autoplay
embla-carousel-auto-scroll
embla-carousel-solid
embla-carousel-auto-height
embla-carousel-class-names
embla-carousel-fade
embla-carousel-docs (Documentation)
embla-carousel-docs (Generator)
Additional information
I'm sharing the code in case I'm using the library wrong.
If there's no problem with the library usage, I'll look into it a little more.
Unfortunately, I can't access the sandbox in my current environment.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
When there is only one child, the container height is defined as 22px. (The height including the child's image is approximately 109px.)
I'm not very good at English, so I used Google Translate for help.
Related information
If applicable, which variants of Embla Carousel are relevant to this question?
Additional information
I'm sharing the code in case I'm using the library wrong.
If there's no problem with the library usage, I'll look into it a little more.
Unfortunately, I can't access the sandbox in my current environment.
Beta Was this translation helpful? Give feedback.
All reactions