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
Hi,
First of all, thank you for a great tool which is Swiper!
I have a situation where my slides may be empty (0 height). With the autoHeight: true setting enabled, the script does not refresh heights for these empty slides.
Currently the only way for this to work is to set a min-height: 1px, but ideally this would be fixed in the script. Is there any reason this condition exists?
Check that this is really a bug
Reproduction link
https://codesandbox.io/s/swiper-autoheight-forked-4rq8q
Bug description
Hi,
First of all, thank you for a great tool which is Swiper!
I have a situation where my slides may be empty (0 height). With the
autoHeight: true
setting enabled, the script does not refresh heights for these empty slides.This is due to this condition:
swiper/src/core/update/updateAutoHeight.js
Line 47 in e641fd2
Currently the only way for this to work is to set a
min-height: 1px
, but ideally this would be fixed in the script. Is there any reason this condition exists?Expected Behavior
No response
Actual Behavior
No response
Swiper version
4e7a160
Platform/Target and Browser Versions
all
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: