Ticket #1336: autogrow.patch

File autogrow.patch, 652 bytes (added by Matthias Miller, 17 years ago)
  • editor/plugins/autogrow/fckplugin.js

     
    6363                        return ;
    6464
    6565                window.frameElement.height = iMainFrameSize ;
     66
     67                // Gecko browsers use an onresize handler to update the innermost
     68                // IFRAME's height. If the document is modified before the onresize
     69                // is triggered, the plugin will miscalculate the new height. Thus,
     70                // forcibly trigger onresize.
     71                if ( typeof window.onresize === 'function' )
     72                        window.onresize() ;
    6673        }
    6774}
    6875
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy