MediaWiki:Common.js: Difference between revisions

No edit summary
No edit summary
Line 17: Line 17:
   function sendHeight() {
   function sendHeight() {
     var h = document.body ? document.body.scrollHeight : 0;
     var h = document.body ? document.body.scrollHeight : 0;
     if ( h > 0 ) window.parent.postMessage( { embedHeight: h + 20 }, '*' );
     if ( h > 0 ) window.parent.postMessage( { embedHeight: h + 5 }, '*' );
   }
   }