Index: /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fck.js
===================================================================
--- /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fck.js	(revision 1071)
+++ /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fck.js	(revision 1072)
@@ -760,28 +760,32 @@
 				{
 					'position' : 'absolute',
-					'zIndex' : 200
+					'zIndex' : FCKConfig.FloatingPanelsZIndex
 				} ) ;
 			FCKDomTools.SetOpacity( this.BackgroundBlocker, 0.5 ) ;
 			FCKDomTools.SetOpacity( this.EditorBlocker, 0.5 ) ;
 			editorParentElement.style.overflow = 'visible' ;
+		}
+
+		if ( yes )
+		{
 			var frameWidth = editorFrame.offsetWidth ;
 			var frameHeight = editorFrame.offsetHeight ;
-			FCKDomTools.SetElementStyles( editorFrame,
-				{
-					'zIndex' : 100,
-					'width' : frameWidth + 'px',
-					'height' : frameHeight + 'px',
-					'position' : 'absolute'
-				} ) ;
-			FCKDomTools.SetElementStyles( editorParentElement, 
-				{
-					'width' : frameWidth + 'px',
-					'height' : frameHeight + 'px',
-					'position' : 'relative'
-				} ) ;
-		}
-
-		if ( yes )
-		{
+			if ( this.Commands.GetCommand( 'FitWindow' ).GetState() == FCK_TRISTATE_OFF )
+			{
+				FCKDomTools.SetElementStyles( editorFrame,
+						{
+						'zIndex' : 100,
+						'width' : frameWidth + 'px',
+						'height' : frameHeight + 'px',
+						'position' : 'absolute'
+						} ) ;
+				FCKDomTools.SetElementStyles( editorParentElement, 
+						{
+						'width' : frameWidth + 'px',
+						'height' : frameHeight + 'px',
+						'position' : 'relative'
+						} ) ;
+			}
+
 			var parentDivPosition = FCKTools.GetDocumentPosition( this.Window.parent, editorParentElement ) ;
 			FCKDomTools.SetElementStyles( this.EditorBlocker,
