mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
[popup] For IE8: Use $(window).width() instead of window.innerWidth - same for height
This commit is contained in:
parent
b9abd74f48
commit
befc774a22
1 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue