Index: /FCKeditor/trunk/_whatsnew.html =================================================================== --- /FCKeditor/trunk/_whatsnew.html (revision 4222) +++ /FCKeditor/trunk/_whatsnew.html (revision 4223) @@ -97,4 +97,6 @@
Index: /FCKeditor/trunk/editor/_source/internals/fck.js =================================================================== --- /FCKeditor/trunk/editor/_source/internals/fck.js (revision 4222) +++ /FCKeditor/trunk/editor/_source/internals/fck.js (revision 4223) @@ -495,5 +495,5 @@ } - if ( FCKBrowserInfo.IsGecko ) + if ( window.onresize ) window.onresize() ; }, Index: /FCKeditor/trunk/editor/_source/internals/fcktoolbarset.js =================================================================== --- /FCKeditor/trunk/editor/_source/internals/fcktoolbarset.js (revision 4222) +++ /FCKeditor/trunk/editor/_source/internals/fcktoolbarset.js (revision 4223) @@ -240,5 +240,5 @@ this._Document.getElementById( 'xExpanded' ).style.display = collapse ? 'none' : '' ; - if ( FCKBrowserInfo.IsGecko ) + if ( window.onresize ) { // I had to use "setTimeout" because Gecko was not responding in a right Index: /FCKeditor/trunk/editor/fckeditor.html =================================================================== --- /FCKeditor/trunk/editor/fckeditor.html (revision 4222) +++ /FCKeditor/trunk/editor/fckeditor.html (revision 4223) @@ -373,14 +373,14 @@ } -// Gecko browsers doesn't calculate well the IFRAME size so we must +// Gecko and Webkit browsers don't calculate well the IFRAME size so we must // recalculate it every time the window size changes. -if ( FCKBrowserInfo.IsGecko && !FCKBrowserInfo.IsOpera ) +if ( FCKBrowserInfo.IsGecko || FCKBrowserInfo.IsSafari ) { window.onresize = function( e ) { - // Running in Chrome makes the window receive the event including subframes. + // Running in Firefox's chrome makes the window receive the event including subframes. // we care only about this window. Ticket #1642. // #2002: The originalTarget from the event can be the current document, the window, or the editing area. - if ( e && e.originalTarget !== document && e.originalTarget !== window && (!e.originalTarget.ownerDocument || e.originalTarget.ownerDocument != document )) + if ( e && e.originalTarget && e.originalTarget !== document && e.originalTarget !== window && (!e.originalTarget.ownerDocument || e.originalTarget.ownerDocument != document )) return ;