L
L
ligisayan2015-10-23 14:24:56
JavaScript
ligisayan, 2015-10-23 14:24:56

Why is the height of the carousel not adjusted by the tallest element?

There is an owl carusel in which blocks of different heights, for which, according to the documentation, I wrote the autoHeight: true instruction in the carousel. But, the carousel's height changes to the tallest element only when the element occupies the first position, and not at the moment it appears (part of the element is hidden). Why is this and how can it be corrected? For a visual demonstration, I showed this using the fidl example :

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Radiks Alijevs, 2015-10-23
@ligisayan

autoHeight: true it is desirable to use only for one slide, you have 3 of them, therefore it does not work correctly
autoHeight: false
- Add height to owl-wrapper-outer so you can use diffrent heights on slides. Use it only for one item per page setting .

I
Ivan Demidov, 2015-10-23
@Scrum

from the "Use it only for one item per page setting" docs. Lightslider can be tried as an alternative.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question