Skip to content

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

Description

@michal-radziwilko

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions