Make WordPress Core

Ticket #30515: 30515.patch

File 30515.patch, 1.3 KB (added by azaozz, 11 years ago)
  • src/wp-admin/js/editor-expand.js

     
    315315
    316316                // Adjust the toolbars based on the active editor mode.
    317317                function adjust( event ) {
    318                         var type = event && event.type;
    319 
    320318                        // Make sure we're not in fullscreen mode.
    321319                        if ( fullscreen && fullscreen.settings.visible ) {
    322320                                return;
     
    323321                        }
    324322
    325323                        var windowPos = $window.scrollTop(),
     324                                type = event && event.type,
    326325                                resize = type !== 'scroll',
    327326                                visual = ( mceEditor && ! mceEditor.isHidden() ),
    328327                                buffer = autoresizeMinHeight,
     
    467466                                                // +[n] for the border around the .wp-editor-container.
    468467                                                ( windowPos + heights.windowHeight ) <= ( editorPos + editorHeight + heights.bottomHeight + heights.statusBarHeight + borderWidth ) ) {
    469468
    470                                         if ( event && event.deltaHeight > 0 ) {
    471                                                 window.scrollBy( 0, event.deltaHeight );
    472                                         } else if ( advanced ) {
     469                                        if ( advanced ) {
    473470                                                fixedBottom = true;
    474471
    475472                                                $statusBar.css( {
     
    492489
    493490                                        $statusBar.add( $bottom ).attr( 'style', '' );
    494491
    495                                         ! advanced && $statusBar.css( 'visibility', 'hidden' );
     492                                        if ( ! advanced ) {
     493                                                $statusBar.css( 'visibility', 'hidden' );
     494                                        }
    496495                                }
    497496                        }
    498497