SOLVED: Nested slider issue when number of slides is lower than default

Browser: Chrome, Firefox
OS: Windows 10
URL: Link to a page that illustrates this issue

In 1.9.2 Beta a new issue in nested slider appeared: when there are less slides than the defaults, the slider is broken - in the beginning and the end there are blank spaces and the slider suggests that should be slided even though it shouldn’t. It seems as the slider expected there are more slides than presented (even though they are not in the DOM). Here’s the screenshot of the situation:

Here is the link to the dev version: Mělnická vína, regionální potraviny – Zahradnictví Fous

It also seems that the height of the slider is not calculated correctly - there should be 2 rows of text in the last 2 slides, which can be seen when the right arrow is clicked and the slide moves.

The issue is not there when there are more or exact number of slides in the slider, as you can see here:

All the affected sliders you can find before the page footer.

The issue was introduces in the 1.9.2 Beta, in 1.9.1.1 everything worked fine. Luckily I have another, older dev site with the previous Bricks version here: Mělnická vína, regionální potraviny – Zahradnictví Fous, so you can check it out there yourself.

All the sliders are populated dynamically via loop.

Could you please look into it?

Thanks
Petr

Hi Petr,
Thanks so much for your report and the detailed examples!

I reproduced both issues and added them to the bug tracker.
As for the height, you can set “min-content” as the height instead of the auto height toggle, then it should work.

Best regards,
timmse

1 Like

Hi Petr,
We’ve fixed this issue in Bricks 1.9.2, now available as a one-click update in your WordPress Dashboard.

Changelog: Changelog – Bricks

Please let us know if you are still experiencing issues.

Best regards,
timmse