mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 15:08:59 +01:00
Fixed bug with FCKEditor and Safari in which the fck editor area isn't maximized
This commit is contained in:
parent
52edbbd092
commit
16d9b79965
@ -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 )
|
||||
{
|
||||
@ -282,8 +282,11 @@ if ( FCKBrowserInfo.IsGecko && !FCKBrowserInfo.IsOpera )
|
||||
var eInnerElement = oCell.firstChild ;
|
||||
if ( eInnerElement )
|
||||
{
|
||||
eInnerElement.style.height = '0px' ;
|
||||
eInnerElement.style.height = ( oCell.scrollHeight - 2 ) + 'px' ;
|
||||
eInnerElement.style.height = '0px';
|
||||
if (FCKBrowserInfo.IsGecko)
|
||||
eInnerElement.style.height = ( oCell.scrollHeight - 2 ) + 'px' ;
|
||||
else
|
||||
eInnerElement.style.height = ( oCell.scrollHeight - 16 ) + 'px' ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user