How do I get the height of a div’s full content with jQuery?

scrollHeight is a property of a DOM object, not a function: Height of the scroll view of an element; it includes the element padding but not its margin. Given this: <div id=”x” style=”height: 100px; overflow: hidden;”> <div style=”height: 200px;”> pancakes </div> </div> This yields 200: $(‘#x’)[0].scrollHeight For example: http://jsfiddle.net/ambiguous/u69kQ/2/ (run with the JavaScript console open).

How to determine height of UICollectionView with FlowLayout

Whoa! For some reason, after hours of research, I now found a pretty easy answer to my question: I was completely searching in the wrong place, digging through all the documentation I could find on UICollectionView. The simple and easy solution lies in the underlying layout: Just call collectionViewContentSize on your myCollectionView.collectionViewLayout property and you … Read more