Make WordPress Core

Changeset 30707


Ignore:
Timestamp:
12/02/2014 08:08:25 AM (9 years ago)
Author:
johnbillion
Message:

Prevent scrolling beneath modals on mobile devices by removing overflow from #wpwrap when a modal is open.

Fixes #29909
Props avryl

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/common.css

    r30700 r30707  
    222222body.modal-open {
    223223    overflow: hidden;
     224}
     225
     226body.mobile.modal-open #wpwrap {
     227    overflow: hidden;
     228    height: 100%;
    224229}
    225230
  • trunk/src/wp-includes/js/wplink.js

    r29335 r30707  
    7878            var ed;
    7979
     80            $( document.body ).addClass( 'modal-open' );
     81
    8082            wpLink.range = null;
    8183
     
    167169
    168170        close: function() {
     171            $( document.body ).removeClass( 'modal-open' );
     172
    169173            if ( ! wpLink.isMCE() ) {
    170174                wpLink.textarea.focus();
Note: See TracChangeset for help on using the changeset viewer.