mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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:
@@ -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' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user