﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1418	FCKToolbarSet Detached Toolbar Flicker	Scott McNaught		"When the toolbar is detached, and using the IFRAME mode, the toolbar can flicker on load as as it adjusts its size.  There is a browser hack which adjusts the frame height using setTimeout() with a delay of 1 second,

I beleive the way that this is implemented could be improved.

The code is:
window.onload = function () {adjust(); window.setTimeout( adjust, 1000 ); }

- The initial call to adjust() is not needed as when it adjusts, on most browsers it adjusts to the wrong size anyway (causing flicker)
- There does not appear to be a need for the 1000ms delay (calling it via setTimeout ensures anyway that the DOM has been fully constructed before calling the function)

I suggest that this be changed to simply:

window.setTimeout( adjust, 0 );

I have attached a patch."	Bug	closed	Normal	FCKeditor 2.5	UI : Toolbar	SVN (FCKeditor) - Retired	fixed	HasPatch	
