S
S
Svyatoslav2015-09-23 17:04:39
JavaScript
Svyatoslav, 2015-09-23 17:04:39

Why does an element/block on an inactive carousel slide return 0?

The bootstrap carousel
If the element is on the first slide, then for example returns the correct value, but elements from another slide return 0. $('elem').height()

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Novikov, 2015-09-23
@dmitriy_novikov

apparently these elements are hidden via display:none or something like that. they are not displayed on the screen, so their height is zero.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question