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

Splide is not responsive on element resize without window resize #83

Open
2 tasks done
michal-radziwilko opened this issue Oct 1, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@michal-radziwilko
Copy link

Checks

Version

0.7.12

Description

When resizing the window splide updates the position of a photos correctly but when the component is resized without changing the window size the position of photos in splide is not updated

Reproduction Link

No response

Steps to Reproduce

  1. Create resizable parent component that will render Splide inside
  2. Resize the component while any photo except the first one is currently displayed
  3. Photos have wrong position

Expected Behaviour

Correctly handle responsiveness when the size of the element is updated by changing the size of a component without changing the size of a window.
Adding resize observer on an element and refreshing splide on element size updates resolves the problem.

@michal-radziwilko michal-radziwilko added the bug Something isn't working label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant