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

swiper does not update size #32

Closed
matt8707 opened this issue May 29, 2021 · 2 comments
Closed

swiper does not update size #32

matt8707 opened this issue May 29, 2021 · 2 comments

Comments

@matt8707
Copy link

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
Copy link

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.

@matt8707
Copy link
Author

That sadly seems to have no effect, dependency 6.5.9

parameters:
  breakpointsBase: container

I've fixed most issues with css, the only remaining is opening/closing the sidebar on desktop

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

No branches or pull requests

2 participants