How to return the final object property in jQuery?

To position pop-up vertically you need to know its final height (as different Windows of the same type depending on content can have a different height). Tried, as usual, this code:

$('.popup').each(function () {
 console.log(window.innerHeight, getComputedStyle(this).height)
})


getComputedStyle(this).returns the height of 'auto', which, of course, is not suitable.
In what may be the problem and which method will help me solve the problem?
June 14th 19 at 18:06
1 answer
June 14th 19 at 18:08
Solution
$(".popup").outerHeight()//Get the height of the elments
Well, actually, the height can differently to given\not taking into account border,padding, etc.
$(".popup").offset().top//Get y(top) coordinate

Find more questions by tags CSSHTMLJavaScriptjQuery