[popup] For IE8: Use $(window).width() instead of window.innerWidth - same for height

This commit is contained in:
Gabriel Schulhof 2011-12-23 00:01:46 +02:00
parent b9abd74f48
commit befc774a22

View file

@ -139,9 +139,9 @@ $.widget("mobile.popup", $.mobile.widget, {
var ret,
menuHeight = this._ui.container.outerHeight(true),
menuWidth = this._ui.container.outerWidth(true),
scrollTop = $( window ).scrollTop(),
screenHeight = window.innerHeight,
screenWidth = window.innerWidth,
scrollTop = $(window).scrollTop(),
screenHeight = $(window).height(),
screenWidth = $(window).width(),
halfheight = menuHeight / 2,
maxwidth = parseFloat( this._ui.container.css( "max-width" ) ),
roomtop = y - scrollTop,