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 using dynamic units within the slide, AND the slide is initialized WHILE the mobile browser UI is visible, THEN the height calculation is incorrect.
Workaround: ResizeObserver that calls swiper.updateAutoHeight(1) when the window.innerHeight changes
Expected Behavior
The whole content of a Slide should be visible (height should match the content height)
Actual Behavior
On page load the last line of the first slide is not visible because height is to low. When you swipe to the next slide and down (hiding the menu), then swipe back, you CAN see the content.
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/sandbox/swiper-autoheight-forked-xzjhl4
Bug description
When using dynamic units within the slide, AND the slide is initialized WHILE the mobile browser UI is visible, THEN the height calculation is incorrect.
Workaround: ResizeObserver that calls swiper.updateAutoHeight(1) when the window.innerHeight changes
Expected Behavior
The whole content of a Slide should be visible (height should match the content height)
Actual Behavior
On page load the last line of the first slide is not visible because height is to low. When you swipe to the next slide and down (hiding the menu), then swipe back, you CAN see the content.
Swiper version
latest
Platform/Target and Browser Versions
tested on mobile chrome and firefox
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: