Index: FCKeditor/trunk/editor/_source/internals/fck_gecko.js
===================================================================
--- FCKeditor/trunk/editor/_source/internals/fck_gecko.js	(revision 1187)
+++ FCKeditor/trunk/editor/_source/internals/fck_gecko.js	(revision 1188)
@@ -29,6 +29,6 @@
 {
 	// When calling "SetData", the editing area IFRAME gets a fixed height. So we must recalculate it.
-	if ( FCKBrowserInfo.IsGecko )		// Not for Safari/Opera.
-		Window_OnResize() ;
+	if ( window.onresize )		// Not for Safari/Opera.
+		window.onresize() ;
 
 	FCKFocusManager.AddWindow( this.EditorWindow ) ;
Index: FCKeditor/trunk/editor/fckdialog.html
===================================================================
--- FCKeditor/trunk/editor/fckdialog.html	(revision 1187)
+++ FCKeditor/trunk/editor/fckdialog.html	(revision 1188)
@@ -180,5 +180,5 @@
 		eTabsRow.style.display = '' ;
 
-		if ( ! window.dialogArguments.Editor.FCKBrowserInfo.IsIE )
+		if ( window.onresize )
 			window.onresize() ;
 	}
@@ -257,12 +257,17 @@
 DisableContextMenu( document ) ;
 
-if ( ! window.dialogArguments.Editor.FCKBrowserInfo.IsIE )
-{
-	window.onresize = function()
-	{
+if ( window.dialogArguments.Editor.FCKBrowserInfo.IsGecko && !window.dialogArguments.Editor.FCKBrowserInfo.IsOpera )
+{
+	window.onresize = function( e )
+	{
+		// Running in Chrome makes the window receive the event including subframes.
+		// we care only about this window. Ticket #1642
+		if ( e && e.originalTarget !== document )
+				return ;
+
 		var oFrame = document.getElementById("frmMain") ;
 
 		if ( ! oFrame )
-		return ;
+			return ;
 
 		oFrame.height = 0 ;
Index: FCKeditor/trunk/editor/fckeditor.html
===================================================================
--- FCKeditor/trunk/editor/fckeditor.html	(revision 1187)
+++ FCKeditor/trunk/editor/fckeditor.html	(revision 1188)
@@ -282,11 +282,13 @@
 }
 
-// Gecko browsers doens't calculate well that IFRAME size so we must
+// Gecko browsers doesn't calculate well the IFRAME size so we must
 // recalculate it every time the window size changes.
-if ( FCKBrowserInfo.IsGecko )
-{
-	function Window_OnResize()
-	{
-		if ( FCKBrowserInfo.IsOpera )
+if ( FCKBrowserInfo.IsGecko && !FCKBrowserInfo.IsOpera )
+{
+	window.onresize = function( e )
+	{
+		// Running in Chrome makes the window receive the event including subframes.
+		// we care only about this window. Ticket #1642
+		if ( e && e.originalTarget !== document )
 			return ;
 
@@ -300,5 +302,4 @@
 		}
 	}
-	window.onresize = Window_OnResize ;
 }
 
