Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoHeight not working for Virtual Slides #4525

Closed
tobiasriemenschneider opened this issue May 5, 2021 · 2 comments
Closed

AutoHeight not working for Virtual Slides #4525

tobiasriemenschneider opened this issue May 5, 2021 · 2 comments

Comments

@tobiasriemenschneider
Copy link

  • Swiper Version: 6.5.9
  • Platform/Target and Browser Versions: Google Chrome for Mac - Version 90

What I Did

I did a very basic implementation of a set of Virtual Slides based on the official documentation.
Since each slide contains a different amount of simple text I tried to use the autoHeight parameter.

See implementation on CodeSandbox: https://codesandbox.io/s/swiper-react-test-cuhcu?file=/src/App.js

Expected Behavior

I expected Swiper to automatically adapt the size (height) of the slide/swiper container to match the different amounts of text being displayed on the different slides.

Actual Behavior

The height of some slides is not adapted properly. See below.

swiper - autoHeight issue

@tobiasriemenschneider
Copy link
Author

Thanks! 👍

@mrjackyliang
Copy link

mrjackyliang commented May 18, 2023

Hmm that's odd. Either this bug came back or it wasn't fixed. Using Safari btw

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

No branches or pull requests

3 participants