Skip to content
Browse files

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

… same for height
  • Loading branch information...
1 parent b9abd74 commit befc774a2275c194f0c18ee1addf52978ec9950e @gabrielschulhof gabrielschulhof committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 js/jquery.mobile.popup.js
View
6 js/jquery.mobile.popup.js
@@ -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,

0 comments on commit befc774

Please sign in to comment.
Something went wrong with that request. Please try again.