tiny-slider
tiny-slider copied to clipboard
Height of slider wrong with lazy loaded images
Issue description:
We're using LazySizes for lazy-loading images (although the same thing occurs when using Tiny Slider's built-in method) and until the images have all been loaded, or until the window is resized, the height of the slider is too tall (see below).
This is what it looks like after all the images have loaded:
Is there any way to fix this issue?
Demo link/slider setting:
Tiny-slider version: 2.9.3 Browser name && version: All browsers OS name && version: Only tested on Mac so far
+1 same issue on 2.9.3 with lazy-load tested only on macos (chrome)
maybe #403 can help
To Whom might endup here through Google: Without any Code Example to test this, Id try the Following.
Listen to the lazyloaded
Event and update the sliderHight using its buildin Function
document.addEventListener('lazyloaded', ()=>{
slider.updateSliderHeight();
});