Ticket #7984: 7984.patch

File 7984.patch, 1010 bytes (added by Sa'ar Zac Elias, 13 years ago)
  • _source/plugins/autogrow/plugin.js

     
    2626                                        newHeight;
    2727
    2828                                var delta =
    29                                                 // Delta height by checking scrollHeight.
    30                                                 ( CKEDITOR.env.ie && CKEDITOR.env.quirks ? body.scrollHeight - body.clientHeight
     29                                                // Quirks calculation (including host page and document) requires 24 extra pixels (#7984).
     30                                                ( ( CKEDITOR.env.quirks || doc.$.compatMode == 'BackCompat' ) && body.offsetHeight - body.clientHeight > 0 ? body.offsetHeight - body.clientHeight + 24
    3131                                                                : htmlElement.scrollHeight - ( htmlElement.clientHeight || htmlElement.offsetHeight ) )
    3232                                                // Negative scrollHeight (content reduced) is not supported in some browsers, figure it out by watching over the content size.
    3333                                                || ( body.clientHeight < lastContentHeight ? body.clientHeight - lastContentHeight : 0 );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy