swiper
swiper copied to clipboard
SwiperSlide can not calculate height when slide re-enters document flow
Check that this is really a bug
- [X] I confirm
Reproduction link
https://codesandbox.io/p/devbox/swiper-react-pagination-forked-rphtm9?workspaceId=35d6dd92-3dc6-4c2e-8d07-68fda293fe48
Bug description
I am trying to full screen a swiper slide by pulling it out of the document flow (position fixed). When I re-set the slide back into the document the size it calculates is incorrect.
I have tried using swiper.update()
and this does not help
Expected Behavior
Document remains "full window height".
No response
Actual Behavior
Document ends up being "full window height + footer height"
No response
Swiper version
11.1.14
Platform/Target and Browser Versions
Edge/Chrome
Validations
- [X] Follow our Code of Conduct
- [X] Read the docs.
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
- [X] 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