metafizzy / flickity-docs

:memo: documentation for Flickity
28 stars 8 forks source link

images not drawing in second tab of bootstrap framework. #27

Closed MyAalteredRiots closed 8 years ago

MyAalteredRiots commented 8 years ago

So I tried to get multiple sliders running in some bootstrap tabs. The first slider draws and works fine in the first tab. The second one doesn't display in the second tab until I resize the window or inspect an element. Is there a function I can call to redraw after I have a user click any subsequent tabs?

desandro commented 8 years ago

Yes, call resize. Thanks for reporting this issue

warrebuysse commented 8 years ago

@MyAalteredRiots: not sure "resize" is what you need. I'm pretty sure the carousel-cells don't have a dedicated width. Try to add width:100% to the cell and see what happens.