Index: /FCKeditor/trunk/editor/_source/internals/fckdialog.js
===================================================================
--- /FCKeditor/trunk/editor/_source/internals/fckdialog.js	(revision 1464)
+++ /FCKeditor/trunk/editor/_source/internals/fckdialog.js	(revision 1465)
@@ -63,13 +63,13 @@
 			return ;
 		
-		var documentElement = topDocument.documentElement ;
+		var relElement = FCKTools.IsStrictMode( topDocument ) ? topDocument.documentElement : topDocument.body ;
 			
 		FCKDomTools.SetElementStyles( cover,
 			{
-				'width' : Math.max( documentElement.scrollWidth,
-					documentElement.clientWidth,
+				'width' : Math.max( relElement.scrollWidth,
+					relElement.clientWidth,
 					topDocument.scrollWidth || 0 ) - 1 + 'px',
-				'height' : Math.max( documentElement.scrollHeight,
-					documentElement.clientHeight,
+				'height' : Math.max( relElement.scrollHeight,
+					relElement.clientHeight,
 					topDocument.scrollHeight || 0 ) - 1 + 'px'
 			} ) ;
