Changeset 4223


Ignore:
Timestamp:
2009-09-11 18:26:00 (2 years ago)
Author:
alfonsoml
Message:

#3053 Fix sizing problems in Webkit

Location:
FCKeditor/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/_whatsnew.html

    r4222 r4223  
    9797                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2201">#2201</a>] Fixed a crash in IE  
    9898                        in an object is selected (with handles) on unload of the editor.</li>    
     99                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/3053">#3053</a>] Fixed problems with  
     100                        the height of the content area in Safari and Chrome.</li>  
    99101        </ul> 
    100102        <p> 
  • FCKeditor/trunk/editor/_source/internals/fck.js

    r3973 r4223  
    495495                } 
    496496 
    497                 if ( FCKBrowserInfo.IsGecko ) 
     497                if ( window.onresize ) 
    498498                        window.onresize() ; 
    499499        }, 
  • FCKeditor/trunk/editor/_source/internals/fcktoolbarset.js

    r2913 r4223  
    240240        this._Document.getElementById( 'xExpanded' ).style.display = collapse ? 'none' : '' ; 
    241241 
    242         if ( FCKBrowserInfo.IsGecko ) 
     242        if ( window.onresize ) 
    243243        { 
    244244                // I had to use "setTimeout" because Gecko was not responding in a right 
  • FCKeditor/trunk/editor/fckeditor.html

    r2913 r4223  
    373373} 
    374374 
    375 // Gecko browsers doesn't calculate well the IFRAME size so we must 
     375// Gecko and Webkit browsers don't calculate well the IFRAME size so we must 
    376376// recalculate it every time the window size changes. 
    377 if ( FCKBrowserInfo.IsGecko && !FCKBrowserInfo.IsOpera ) 
     377if ( FCKBrowserInfo.IsGecko || FCKBrowserInfo.IsSafari ) 
    378378{ 
    379379        window.onresize = function( e ) 
    380380        { 
    381                 // Running in Chrome makes the window receive the event including subframes. 
     381                // Running in Firefox's chrome makes the window receive the event including subframes. 
    382382                // we care only about this window. Ticket #1642. 
    383383                // #2002: The originalTarget from the event can be the current document, the window, or the editing area. 
    384                 if ( e && e.originalTarget !== document && e.originalTarget !== window && (!e.originalTarget.ownerDocument || e.originalTarget.ownerDocument != document )) 
     384                if ( e && e.originalTarget && e.originalTarget !== document && e.originalTarget !== window && (!e.originalTarget.ownerDocument || e.originalTarget.ownerDocument != document )) 
    385385                        return ; 
    386386 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2011 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy