Make WordPress Core

Ticket #31599: 31599.patch

File 31599.patch, 1.1 KB (added by tyxla, 8 years ago)

Replace visibility:hidden with display:none to remove the white space when path is hidden.

  • src/wp-admin/js/editor-expand.js

     
    385385                                                width: contentWrapWidth - ( borderWidth * 2 ) - ( visual ? 0 : ( $top.outerWidth() - $top.width() ) )
    386386                                        } );
    387387
    388                                         $statusBar.attr( 'style', advanced ? '' : 'visibility: hidden;' );
     388                                        $statusBar.attr( 'style', advanced ? '' : 'display: none;' );
    389389                                        $bottom.attr( 'style', '' );
    390390                                }
    391391                        } else {
     
    480480                                                $statusBar.css( {
    481481                                                        position: 'fixed',
    482482                                                        bottom: heights.bottomHeight,
    483                                                         visibility: '',
     483                                                        display: '',
    484484                                                        width: contentWrapWidth - ( borderWidth * 2 )
    485485                                                } );
    486486
     
    495495                                                ( windowPos + heights.windowHeight ) > ( editorPos + editorHeight + heights.bottomHeight + heights.statusBarHeight - borderWidth ) ) ) {
    496496                                        fixedBottom = false;
    497497
    498                                         $statusBar.attr( 'style', advanced ? '' : 'visibility: hidden;' );
     498                                        $statusBar.attr( 'style', advanced ? '' : 'display: none;' );
    499499                                        $bottom.attr( 'style', '' );
    500500                                }
    501501                        }