Editor scrolling: reduce the amount of height jumping on load.

props avryl.
fixes #29307.


git-svn-id: https://develop.svn.wordpress.org/trunk@29628 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Helen Hou-Sandi
2014-08-26 18:38:26 +00:00
parent ad66613c02
commit 1121aad86e
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ final class _WP_Editors {
if ( empty( $set['editor_height'] ) )
return $set;
if ( 'content' === $editor_id ) {
if ( 'content' === $editor_id && empty( $set['tinymce']['wp_autoresize_on'] ) ) {
// A cookie (set when a user resizes the editor) overrides the height.
$cookie = (int) get_user_setting( 'ed_size' );