Ticket #6061: 6061.patch

File 6061.patch, 866 bytes (added by Sa'ar Zac Elias, 9 years ago)
  • _source/plugins/autogrow/plugin.js

     
    1010        var resizeEditor = function( editor )
    1111        {
    1212                var doc = editor.document,
    13                         documentElement = doc.getDocumentElement().$,
    1413                        currentHeight = editor.window.getViewPaneSize().height,
    1514                        newHeight;
    1615
     16                // We can not use documentElement to calculate the height for IE (#6061).
    1717                if ( CKEDITOR.env.ie )
    18                         newHeight = documentElement.scrollHeight;
     18                        newHeight = doc.getBody().$.scrollHeight + 24;
    1919                else
    20                         newHeight = documentElement.offsetHeight;
     20                        newHeight = doc.getDocumentElement().$.offsetHeight;
    2121
    2222                var min = editor.config.autoGrow_minHeight,
    2323                        max = editor.config.autoGrow_maxHeight;
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy