Ticket #6747: 6747_3.patch

File 6747_3.patch, 1.1 KB (added by Tobiasz Cudnik, 13 years ago)
  • _source/plugins/maximize/plugin.js

     
    202202                                                                        height : ( CKEDITOR.env.opera ? viewPaneSize.height - 16 : 0 ) + 'px'
    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                                                         }
    216 
    217205                                                        // #4023: [Opera] Maximize plugin
    218206                                                        if ( CKEDITOR.env.opera )
    219207                                                                mainDocument.getBody().getParent().setStyles( styles );
     208                                                        else
     209                                                                mainDocument.getDocumentElement().setStyles( styles );
     210                                                        mainDocument.getBody().setStyles( styles );
    220211
    221212                                                        // Scroll to the top left (IE needs some time for it - #4923).
    222213                                                        CKEDITOR.env.ie ?
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy