﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1576	Editor height is always =300px	B_aniaczek		"MediaWiki 1.11.0, browsers: FireFox 2.0, MSIE 7.0

Editor height is always set to 300. Proposition:
In file ''FCKeditor/FCKeditor.body.php'' replace lines 
{{{
function onLoadFCKeditor()
[...]
height = ( !height || height < 300 ) ? 300 : height ;
}}}

with code:

{{{
function onLoadFCKeditor() {

 var box = document.getElementById('wpTextbox1');
 if ( box ) {

  var height = $wgFCKEditorHeight ;
  if ( height == 0 ) {

   height = box.offsetHeight;
   var tBar = document.getElementById('toolbar');
   if ( tBar )
    height += tBar.offsetHeight;
   height += 1;

   if ( ! height ) {
    var aTop = tBar;
    if ( ! aTop )
     aTop = box;
    var aBottom = document.getElementById('editpage-copywarn');

    if ( aTop && aBottom )
     height = aBottom.offsetTop - aTop.offsetTop - 6;
   }
  }

  // Enforce a minimum height.
  height = ( !height || height < 300 ) ? 300 : height ;
}}}

"	Bug	closed	Normal		Project : MediaWiki+FCKeditor	SVN (FCKeditor) - Retired	worksforme	Pending WorksForMe HasPatch	
