Fixed bug with FCKEditor and Safari in which the fck editor area isn't maximized

This commit is contained in:
Andreas Stöckel 2010-05-19 12:00:33 +00:00
parent 3f9f60bfca
commit d58b746bf5

View File

@ -267,7 +267,7 @@ function WaitForActive( editorInstance, newStatus )
// Gecko browsers doesn'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) && !FCKBrowserInfo.IsOpera )
{
window.onresize = function( e )
{
@ -283,7 +283,10 @@ if ( FCKBrowserInfo.IsGecko && !FCKBrowserInfo.IsOpera )
if ( eInnerElement )
{
eInnerElement.style.height = '0px' ;
eInnerElement.style.height = ( oCell.scrollHeight - 2 ) + 'px' ;
if (FCKBrowserInfo.IsGecko)
eInnerElement.style.height = ( oCell.scrollHeight - 2 ) + 'px' ;
else
eInnerElement.style.height = ( oCell.scrollHeight - 16 ) + 'px' ;
}
}
}