﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3651	Setting height of editor is broken in IE8 Standards Mode	Michael		"'''Environment:'''
MS Vista (also XP vm), Internet Explorer 8 Standards Mode

'''Issue:'''
Setting the height of the editor from JavaScript does not work in Internet Explorer 8 Standards Mode. Standards mode computes 100% height a little differently to other other browsers, and therefore doesn't make full use of the available space.

'''Sample:'''
{{{
<html>
<head>
<script type=""text/javascript"" src=""/html/includes/fckeditor/fckeditor.js""></script>
<script type=""text/javascript"">
   function init(){
      var fckEditorObj = new FCKeditor('details');
      fckEditorObj.BasePath = ""/html/includes/fckeditor/"";
      fckEditorObj.Height = ""600px"";
      fckEditorObj.ReplaceTextarea();
   }
</script>
<style type=""text/css"">
   div.fckHolder {
      height:600px;
      width:800px;
      background-color:gray; 
      border:2px solid red;
   }
</style>
</head>
<body onload=""init()"">
   <div class=""fckHolder"">
      <textarea id=""details""></textarea>
   </div>
</body>
</html>
}}}

The above code should set the editor height to 600px, however you'll notice that the iframe (""detailsFrame"" in this case) sets itself to 600px (you cant see the gray background of the div) while the editable text area stays on the default 200px.

The fix i would think is the body within the ""detailsFrame"" iframe needs to be given a specified height other than the 100%.

Please advise of the solution


Thanks in advance,

Michael



"	Bug	closed	Normal	FCKeditor 2.6.5	General		invalid		
