mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-09 18:08:09 +01:00
Prevent scrolling beneath modals on mobile devices by removing overflow from #wpwrap
when a modal is open.
Fixes #29909 Props avryl Built from https://develop.svn.wordpress.org/trunk@30707 git-svn-id: http://core.svn.wordpress.org/trunk@30697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a5fa87325b
commit
e96e165c3a
@ -223,6 +223,11 @@ body.modal-open {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body.mobile.modal-open #wpwrap {
|
||||||
|
overflow: hidden;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
iframe,
|
iframe,
|
||||||
img {
|
img {
|
||||||
border: 0;
|
border: 0;
|
||||||
|
@ -223,6 +223,11 @@ body.modal-open {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body.mobile.modal-open #wpwrap {
|
||||||
|
overflow: hidden;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
iframe,
|
iframe,
|
||||||
img {
|
img {
|
||||||
border: 0;
|
border: 0;
|
||||||
|
2
wp-admin/css/wp-admin-rtl.min.css
vendored
2
wp-admin/css/wp-admin-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
2
wp-admin/css/wp-admin.min.css
vendored
2
wp-admin/css/wp-admin.min.css
vendored
File diff suppressed because one or more lines are too long
@ -77,6 +77,8 @@ var wpLink;
|
|||||||
open: function( editorId ) {
|
open: function( editorId ) {
|
||||||
var ed;
|
var ed;
|
||||||
|
|
||||||
|
$( document.body ).addClass( 'modal-open' );
|
||||||
|
|
||||||
wpLink.range = null;
|
wpLink.range = null;
|
||||||
|
|
||||||
if ( editorId ) {
|
if ( editorId ) {
|
||||||
@ -166,6 +168,8 @@ var wpLink;
|
|||||||
},
|
},
|
||||||
|
|
||||||
close: function() {
|
close: function() {
|
||||||
|
$( document.body ).removeClass( 'modal-open' );
|
||||||
|
|
||||||
if ( ! wpLink.isMCE() ) {
|
if ( ! wpLink.isMCE() ) {
|
||||||
wpLink.textarea.focus();
|
wpLink.textarea.focus();
|
||||||
|
|
||||||
|
2
wp-includes/js/wplink.min.js
vendored
2
wp-includes/js/wplink.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.1-beta2-30706';
|
$wp_version = '4.1-beta2-30707';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user