Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Uses `position: fixed` blacklist to fix popup overlays in browsers th…

…at know what they’re doing with `position: fixed`, to avoid monsterous overlays on long pages in some cases.
commit 5959db0b0649921de607b03965fb11d5d6f78e89 1 parent 34c091e
Mat Marquis Wilto authored
Showing with 7 additions and 2 deletions.
  1. +3 −2 css/structure/jquery.mobile.popup.css
  2. +4 −0 js/widgets/popup.js
5 css/structure/jquery.mobile.popup.css
View
@@ -1,7 +1,6 @@
.ui-popup-open .ui-header-fixed,
.ui-popup-open .ui-footer-fixed {
position: absolute !important; /* See line #553 of popup.js */
-
}
.ui-popup-screen {
background-image: url(data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==); /* Necessary to set some form of background to ensure element is clickable in IE6/7. While legacy IE won’t understand the data-URI’d image, it ensures no additional requests occur in all other browsers with little overhead. */
@@ -14,7 +13,9 @@
opacity: 0;
z-index: 1099;
}
-
+.ui-popup-screen.ui-screen-fixed {
+ position: fixed;
+}
.ui-popup-screen.in {
opacity: 0.5;
filter: Alpha(Opacity=50);
4 js/widgets/popup.js
View
@@ -541,6 +541,10 @@ define( [ "jquery",
transition = this.options.transition;
}
+ if ( !$.mobile.fixedBlacklist ) {
+ this._ui.screen.addClass( "ui-screen-fixed" );
+ }
+
if ( !this.options.theme ) {
this._setTheme( this._page.jqmData( "theme" ) || $.mobile.getInheritedTheme( this._page, "c" ) );
}
Please sign in to comment.
Something went wrong with that request. Please try again.