WordPress.org

Make WordPress Core

Changeset 31118


Ignore:
Timestamp:
01/10/2015 01:32:00 AM (6 years ago)
Author:
azaozz
Message:

TinyMCE editor-expand: when kitchensink is off hide the statusbar on loading, and when the editor is shorter then the viewport. Props avryl, fixes #30961.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/editor-expand.js

    r30977 r31118  
    381381                    } );
    382382
    383                     $statusBar.add( $bottom ).attr( 'style', '' );
     383                    $statusBar.attr( 'style', advanced ? '' : 'visibility: hidden;' );
     384                    $bottom.attr( 'style', '' );
    384385                }
    385386            } else {
     
    490491                    fixedBottom = false;
    491492
    492                     $statusBar.add( $bottom ).attr( 'style', '' );
    493 
    494                     if ( ! advanced ) {
    495                         $statusBar.css( 'visibility', 'hidden' );
    496                     }
     493                    $statusBar.attr( 'style', advanced ? '' : 'visibility: hidden;' );
     494                    $bottom.attr( 'style', '' );
    497495                }
    498496            }
Note: See TracChangeset for help on using the changeset viewer.