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 does not work correctly with Virtual Slides #5846

Closed
5 of 6 tasks
anton017 opened this issue Jul 4, 2022 · 2 comments
Closed
5 of 6 tasks

Autoheight does not work correctly with Virtual Slides #5846

anton017 opened this issue Jul 4, 2022 · 2 comments
Labels

Comments

@anton017
Copy link

anton017 commented Jul 4, 2022

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/s/swiper-virtual-slides-forked-b3i0vf?file=/index.html:2413-2423

Bug description

In Chrome browser but error in all browsers.
Autoheight does not work correctly with Virtual Slides
Height 'swiper-wrapper' is not equal to slider content height.

Expected Behavior

The height of 'swiper-wrapper' is equal to the height of the slide.
Height should be 100px.

Actual Behavior

No response

Swiper version

8.2.6

Platform/Target and Browser Versions

All browser

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
@anton017 anton017 added the React label Jul 4, 2022
@nolimits4web
Copy link
Owner

This is the CSS you need to override:

.swiper-autoheight, .swiper-autoheight .swiper-slide {
    height: auto;
}

@anton017
Copy link
Author

anton017 commented Sep 1, 2022

These styles did not solve the problem - https://codesandbox.io/s/swiper-virtual-slides-forked-von84l

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

No branches or pull requests

2 participants