metafizzy / flickity

:leaves: Touch, responsive, flickable carousels
https://flickity.metafizzy.co
7.52k stars 605 forks source link

How to programmatically recalculate size position? #952

Closed kickthemooon closed 5 years ago

kickthemooon commented 5 years ago

I have container that is changing in size (width) flickity is inside that container. When the container changes size flickity doesnt do its magic like on window resize.

Is there a method I can use to recaculate size/position?

kickthemooon commented 5 years ago

Calling resize() on the flickity instance