I am trying to get $(window).height() after fullscreen api fires up. All other supported browser works just fine but Chrome getting window height wrong (sometimes). Its like it missing the fact that the window size has changed. My code is below:
function launchFullscreen(element) {
if(element.requestFullscreen) {
element.requestFullscreen();
} else if(element.mozRequestFullScreen) {
element.mozRequestFullScreen();
} else if(element.webkitRequestFullscreen) {
element.webkitRequestFullscreen();
} else if(element.msRequestFullscreen) {
element.msRequestFullscreen();
}
}
.
launchFullscreen(element);
var windowHeight = $(window).height();
Any idea what am I missing?