I'm having issues with calculating the actual size of the navigator window, its returning a higher number than expected.
The actual code is the following:
function homeFullScreen() {
var homeSection = $('.home');
var windowHeight = $(window).outerHeight();
if (homeSection.hasClass('home-fullscreen')) {
$('.home-fullscreen').css('height', windowHeight);
}
}
Also tried with .innerHeight() and .height() but doesn't work. The expected output is 820px but result is:
.home { height: 47677px; }
And this number changes even if I modify the width of the navigator window. In mobile devices number is much higher.
Does somebody figure out what is happening here?
Thank you,
Alejandra | aleare