Ticket #2002: 2002.patch

File 2002.patch, 1.7 kB (added by martinkou, 4 months ago)
  • _whatsnew.html

     
    9292                        opened.</li> 
    9393                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2024">#2024</a>] Fixed 
    9494                        JavaScript error in IE when the user tries to open dialogs in Source mode.</li> 
     95                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2002">#2002</a>] Fixed 
     96                        the issue where the maximize editor button does not vertically expand the editing 
     97                        area in Firefox.</li> 
    9598        </ul> 
    9699        <h3> 
    97100                Version 2.6 Beta 1</h3> 
  • editor/fckeditor.html

     
    340340        window.onresize = function( e ) 
    341341        { 
    342342                // Running in Chrome makes the window receive the event including subframes. 
    343                 // we care only about this window. Ticket #1642 
    344                 if ( e && e.originalTarget !== document ) 
     343                // we care only about this window. Ticket #1642. 
     344                // #2002: The originalTarget from the event can be the current document, the window, or the editing area. 
     345                if ( e && e.originalTarget !== document && e.originalTarget !== window && e.originalTarget.ownerDocument != document ) 
    345346                        return ; 
    346347 
    347348                var oCell = document.getElementById( 'xEditingArea' ) ; 
     
    349350                var eInnerElement = oCell.firstChild ; 
    350351                if ( eInnerElement ) 
    351352                { 
    352                         eInnerElement.style.height = 0 ; 
    353                         eInnerElement.style.height = oCell.scrollHeight - 2 ; 
     353                        eInnerElement.style.height = '0px' ; 
     354                        eInnerElement.style.height = ( oCell.scrollHeight - 2 ) + 'px' ; 
    354355                } 
    355356        } 
    356357}