Ticket #1336: autogrow.patch

File autogrow.patch, 0.6 kB (added by matthiasmiller, 11 months 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