Ticket #6747: 6747_2.patch
File 6747_2.patch, 1.5 KB (added by , 13 years ago) |
---|
-
_source/plugins/maximize/plugin.js
198 198 var styles = 199 199 { 200 200 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 203 203 }; 204 204 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 ); 216 208 217 // #4023: [Opera] Maximize plugin218 if ( CKEDITOR.env.opera )219 mainDocument.getBody().getParent().setStyles( styles );220 221 209 // Scroll to the top left (IE needs some time for it - #4923). 222 210 CKEDITOR.env.ie ? 223 211 setTimeout( function() { mainWindow.$.scrollTo( 0, 0 ); }, 0 ) :