Ticket #6747: 6747_2.patch

File 6747_2.patch, 1.5 KB (added by Garry Yao, 13 years ago)
  • _source/plugins/maximize/plugin.js

     
    198198                                                        var styles =
    199199                                                                {
    200200                                                                        overflow : 'hidden',
    201                                                                         width : ( CKEDITOR.env.opera ? viewPaneSize.width : 0 ) + 'px',
    202                                                                         height : ( CKEDITOR.env.opera ? viewPaneSize.height - 16 : 0 ) + 'px'
     201                                                                        width : 0,
     202                                                                        height : 0
    203203                                                                };
    204204
    205                                                         if ( CKEDITOR.env.ie )
    206                                                         {
    207                                                                 mainDocument.$.documentElement.style.overflow =
    208                                                                         mainDocument.getBody().$.style.overflow = 'hidden';
    209                                                         }
    210                                                         else
    211                                                         {
    212                                                                 // Prevent window scrolling, e.g. focus moving outside the editor. (#6747)
    213                                                                 mainDocument.getDocumentElement().setStyle( 'overflow', 'hidden' );
    214                                                                 mainDocument.getBody().setStyles( styles );
    215                                                         }
     205                                                        mainDocument.getDocumentElement().setStyles( styles );
     206                                                        !CKEDITOR.env.gecko && mainDocument.getDocumentElement().setStyle( 'position', 'fixed' );
     207                                                        mainDocument.getBody().setStyles( styles );
    216208
    217                                                         // #4023: [Opera] Maximize plugin
    218                                                         if ( CKEDITOR.env.opera )
    219                                                                 mainDocument.getBody().getParent().setStyles( styles );
    220 
    221209                                                        // Scroll to the top left (IE needs some time for it - #4923).
    222210                                                        CKEDITOR.env.ie ?
    223211                                                                setTimeout( function() { mainWindow.$.scrollTo( 0, 0 ); }, 0 ) :
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy