From 3a6ab09a19095fa0b90563c703f7f713ff0d2039 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 19 Aug 2014 22:19:32 +0000 Subject: [PATCH] TinyMCE wpView: add sandbox iframe body styling to get proper height when resizing the iframe, fixes #29270. git-svn-id: https://develop.svn.wordpress.org/trunk@29544 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/mce-view.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/js/mce-view.js b/src/wp-includes/js/mce-view.js index ddf09f3e0a..3758e9c7a7 100644 --- a/src/wp-includes/js/mce-view.js +++ b/src/wp-includes/js/mce-view.js @@ -157,13 +157,15 @@ window.wp = window.wp || {}; '' + '' + '' + '' + @@ -176,7 +178,7 @@ window.wp = window.wp || {}; resize = function() { // Make sure the iframe still exists. - iframe.contentWindow && $( iframe ).height( $( iframeDoc.body ).outerHeight() ); + iframe.contentWindow && $( iframe ).height( $( iframeDoc.body ).height() ); }; if ( MutationObserver ) {