Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question