swiper does not update size
matt8707 opened this issue · 2 comments
matt8707 commented
I'm using custom:layout-card and the swiper container does not update its size unless I resize the window (ResizeObserver
). The same behaviour can be observed in edit ui, but not when not in edit mode. I have attached a video of what it looks like.
Is it possible to update swiper more often or should I take this issue to layout card?
Thanks!
swiper.mp4
jrbloemhof commented
Updating only on window resize is how the underlying Swiper library works by default, but you can try using the breakpointsBase parameter to switch it to resize with the container. Note that the documentation calls it a "beta" feature, so it may not work.