Ticket #1337: autogrow.patch

File autogrow.patch, 685 bytes (added by matthiasmiller, 7 years ago)
  • editor/plugins/autogrow/fckplugin.js

     
    3232 
    3333        if ( FCKBrowserInfo.IsIE ) 
    3434        { 
    35                 iFrameHeight = FCK.EditorWindow.frameElement.offsetHeight ; 
     35                iFrameHeight = oInnerDoc.body.clientHeight ; // does not include scrollbars 
    3636                iInnerHeight = oInnerDoc.body.scrollHeight ; 
    3737        } 
    3838        else 
    3939        { 
    40                 iFrameHeight = FCK.EditorWindow.innerHeight ; 
     40                iFrameHeight = oInnerDoc.body.clientHeight ; // does not include scrollbars 
    4141                iInnerHeight = oInnerDoc.body.offsetHeight ; 
    4242        } 
    4343 
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy