Ticket #2321: 2321.patch

File 2321.patch, 1.1 KB (added by fredck, 21 months ago)
  • _whatsnew.html

     
    4242        <p> 
    4343                Fixed Bugs:</p> 
    4444        <ul> 
    45                 <li></li> 
     45                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2321">#2321</a>] On Firefox 
     46                        3, the entire page was scrolling when inserting block elements with the FCK.InsertElement 
     47                        function, used by the Table and Horizontal Rule buttons.. </li> 
    4648        </ul> 
    4749        <p> 
    4850                <a href="_whatsnew_history.html">See previous versions history</a></p> 
  • editor/_source/internals/fck.js

     
    709709                        else 
    710710                                range.MoveToPosition( element, 4 ) ; 
    711711 
    712                         if ( FCKBrowserInfo.IsGecko ) 
     712                        if ( FCKBrowserInfo.IsGeckoLike ) 
    713713                        { 
    714714                                if ( next ) 
    715                                         next.scrollIntoView( false ) ; 
    716                                 element.scrollIntoView( false ) ; 
     715                                        FCKDomTools.ScrollIntoView( next, false ); 
     716                                FCKDomTools.ScrollIntoView( element, false ); 
    717717                        } 
    718718                } 
    719719                else