From 23d6e2839058cceb78cf789c42ce55188f2a3773 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sat, 10 Jan 2015 01:32:00 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@31118 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/editor-expand.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/wp-admin/js/editor-expand.js b/src/wp-admin/js/editor-expand.js index f5886c60fd..71dd130ad3 100644 --- a/src/wp-admin/js/editor-expand.js +++ b/src/wp-admin/js/editor-expand.js @@ -380,7 +380,8 @@ width: contentWrapWidth - ( borderWidth * 2 ) - ( visual ? 0 : ( $top.outerWidth() - $top.width() ) ) } ); - $statusBar.add( $bottom ).attr( 'style', '' ); + $statusBar.attr( 'style', advanced ? '' : 'visibility: hidden;' ); + $bottom.attr( 'style', '' ); } } else { // Maybe pin the top. @@ -489,11 +490,8 @@ ( windowPos + heights.windowHeight ) > ( editorPos + editorHeight + heights.bottomHeight + heights.statusBarHeight - borderWidth ) ) ) { fixedBottom = false; - $statusBar.add( $bottom ).attr( 'style', '' ); - - if ( ! advanced ) { - $statusBar.css( 'visibility', 'hidden' ); - } + $statusBar.attr( 'style', advanced ? '' : 'visibility: hidden;' ); + $bottom.attr( 'style', '' ); } }