contentHeight = screen.availHeight - $('div[data-role="header"]').outerHeight() - $('div[data-role="footer"]').outerHeight();
$('div[data-role="content"]').css('height', contentHeight - 33);
- app.gameWidth = window.innerWidth;
-
+ app.gameWidth = screen.availWidth;
app.ballWidth = parseInt($('.ball').css('width'), 10);
app.ballHeight = parseInt($('.ball').css('height'), 10);
});
$(window).resize(function() {
- app.gameWidth = $(window).width();
+ app.gameWidth = screen.availWidth;
app.gameHeight = $('.background').outerHeight();
});