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
This commit is contained in:
parent
47cfdb5ced
commit
23d6e28390
@ -380,7 +380,8 @@
|
|||||||
width: contentWrapWidth - ( borderWidth * 2 ) - ( visual ? 0 : ( $top.outerWidth() - $top.width() ) )
|
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 {
|
} else {
|
||||||
// Maybe pin the top.
|
// Maybe pin the top.
|
||||||
@ -489,11 +490,8 @@
|
|||||||
( windowPos + heights.windowHeight ) > ( editorPos + editorHeight + heights.bottomHeight + heights.statusBarHeight - borderWidth ) ) ) {
|
( windowPos + heights.windowHeight ) > ( editorPos + editorHeight + heights.bottomHeight + heights.statusBarHeight - borderWidth ) ) ) {
|
||||||
fixedBottom = false;
|
fixedBottom = false;
|
||||||
|
|
||||||
$statusBar.add( $bottom ).attr( 'style', '' );
|
$statusBar.attr( 'style', advanced ? '' : 'visibility: hidden;' );
|
||||||
|
$bottom.attr( 'style', '' );
|
||||||
if ( ! advanced ) {
|
|
||||||
$statusBar.css( 'visibility', 'hidden' );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user