Closed kmmccafferty96 closed 3 years ago
I seemed to solve the height issue by using setGallerySize: false and manually setting my height, but seems like I'm still getting a weird issue with the width of each of my cells (all set to 100% with the carousel also set to 100%):
Again, this is random and seems to mostly happen in Safari with caching disabled, which makes me believe this is an issue with the image not being loaded and flickity failing to determine the size of the image on load.
I actually even tried to not lazy load the background images (just use background-image:url(...)) and the issue is still there.
Update 2: I actually dumbed it down and took out the images completely, and it's still randomly happening so I'm not sure what's happening. In the image below, my carousel cells have the red border and my inner divs have the blue border:
And here's what it looks like when it's working (which is always in Chrome, sometimes in Safari):
I realized I had a mismatch between my CSS vs. JS (2.0.0 vs 2.2.2). Upgrading my CSS fixed the issue. Sorry about that!
This comment makes it seem like it should, but it still seems like I'm still having issues with the height of the flickity-viewport when using bgLazyLoad:
This is random and seems to mostly happen in Safari (even more often when caching is disabled).