Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html	(revision 7390)
+++ /CKEditor/trunk/CHANGES.html	(revision 7391)
@@ -62,4 +62,5 @@
 		<li><a href="http://dev.ckeditor.com/ticket/7360">#7360</a> : [Webkit] wysiwyg area in some conditions doesn't resize with the chrome.</li>
 		<li><a href="http://dev.ckeditor.com/ticket/5527">#5527</a> : Don't encode "#" sent from the file browser.</li>
+		<li><a href="http://dev.ckeditor.com/ticket/8014">#8014</a> : Autogrow now stretches to fit the content when switching editor modes.</li>
 	</ul>
 	<h3>
Index: /CKEditor/trunk/_source/plugins/autogrow/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/autogrow/plugin.js	(revision 7390)
+++ /CKEditor/trunk/_source/plugins/autogrow/plugin.js	(revision 7391)
@@ -68,5 +68,5 @@
 			editor.addCommand( 'autogrow', { exec : resizeEditor, modes : { wysiwyg:1 }, readOnly: 1, canUndo: false, editorFocus: false } );
 
-			var eventsList = { contentDom:1, key:1, selectionChange:1, insertElement:1 };
+			var eventsList = { contentDom:1, key:1, selectionChange:1, insertElement:1, mode:1 };
 			editor.config.autoGrow_onStartup && ( eventsList[ 'instanceReady' ] = 1 );
 			for ( var eventName in eventsList )
