Update OOUI to v0.30.0
[lhc/web/wiklou.git] / resources / lib / ooui / oojs-ui-windows.js
index 0918473..df057a6 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * OOUI v0.29.6
+ * OOUI v0.30.0
  * https://www.mediawiki.org/wiki/OOUI
  *
  * Copyright 2011–2018 OOUI Team and other contributors.
  * Released under the MIT license
  * http://oojs.mit-license.org
  *
- * Date: 2018-12-05T00:15:55Z
+ * Date: 2018-12-20T06:10:28Z
  */
 ( function ( OO ) {
 
@@ -1680,11 +1680,8 @@ OO.ui.WindowManager.prototype.toggleGlobalEvents = function ( on ) {
                        if ( stackDepth === 0 ) {
                                scrollWidth = window.innerWidth - document.documentElement.clientWidth;
                                bodyMargin = parseFloat( $body.css( 'margin-right' ) ) || 0;
-                               $body.css( {
-                                       overflow: 'hidden',
-                                       position: 'relative',
-                                       'margin-right': bodyMargin + scrollWidth
-                               } );
+                               $body.addClass( 'oo-ui-windowManager-modal-active' );
+                               $body.css( 'margin-right', bodyMargin + scrollWidth );
                        }
                        stackDepth++;
                        this.globalEvents = true;
@@ -1696,11 +1693,8 @@ OO.ui.WindowManager.prototype.toggleGlobalEvents = function ( on ) {
                } );
                stackDepth--;
                if ( stackDepth === 0 ) {
-                       $body.css( {
-                               overflow: '',
-                               position: '',
-                               'margin-right': ''
-                       } );
+                       $body.removeClass( 'oo-ui-windowManager-modal-active' );
+                       $body.css( 'margin-right', '' );
                }
                this.globalEvents = false;
        }