/*!
- * 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 ) {
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;
} );
stackDepth--;
if ( stackDepth === 0 ) {
- $body.css( {
- overflow: '',
- position: '',
- 'margin-right': ''
- } );
+ $body.removeClass( 'oo-ui-windowManager-modal-active' );
+ $body.css( 'margin-right', '' );
}
this.globalEvents = false;
}