X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fmaximize%2Fplugin.js;h=fa2f7913098070bf8bdf3e074b79b2a7d7c180fa;hp=5f2715e84a9842a2be247914fff210d703923119;hb=614511639979907ceb0da3614122a4d8eb963ad4;hpb=039a051ccf3901311661022a30afd60fc38130c9 diff --git a/_source/plugins/maximize/plugin.js b/_source/plugins/maximize/plugin.js index 5f2715e..fa2f791 100644 --- a/_source/plugins/maximize/plugin.js +++ b/_source/plugins/maximize/plugin.js @@ -198,23 +198,13 @@ For licensing, see LICENSE.html or http://ckeditor.com/license var styles = { overflow : 'hidden', - width : ( CKEDITOR.env.opera ? viewPaneSize.width : 0 ) + 'px', - height : ( CKEDITOR.env.opera ? viewPaneSize.height - 16 : 0 ) + 'px' + width : 0, + height : 0 }; - if ( CKEDITOR.env.ie ) - { - mainDocument.$.documentElement.style.overflow = - mainDocument.getBody().$.style.overflow = 'hidden'; - } - else - { - mainDocument.getBody().setStyles( styles ); - } - - // #4023: [Opera] Maximize plugin - if ( CKEDITOR.env.opera ) - mainDocument.getBody().getParent().setStyles( styles ); + mainDocument.getDocumentElement().setStyles( styles ); + !CKEDITOR.env.gecko && mainDocument.getDocumentElement().setStyle( 'position', 'fixed' ); + mainDocument.getBody().setStyles( styles ); // Scroll to the top left (IE needs some time for it - #4923). CKEDITOR.env.ie ?