CoreFiles by mySites.guru
iframe-height-es5.js21 lines, 705 bytes, from Joomla_4.4.3-Stable-Full_Package.zip
Raw History Compare with 4.4.2
md5
b01083264a5081cc78bd785ccf50a86a
sha1
2f871842c5bf1ed2c97e61085126dd1eb30e3100
sha256
4428f0e2ddf29eeab43a041ed710210348d48eff17b7fed43362df910a6455cd
(function () {
  'use strict';

  /**
   * @copyright   (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   */

  (function (window, document) {
    window.iFrameHeight = function (iframe) {
      var doc = 'contentDocument' in iframe ? iframe.contentDocument : iframe.contentWindow.document;
      var height = parseInt(doc.body.scrollHeight, 10);
      if (!document.all) {
        iframe.style.height = parseInt(height, 10) + 60 + "px";
      } else if (document.all && iframe.id) {
        document.all[iframe.id].style.height = parseInt(height, 10) + 20 + "px";
      }
    };
  })(window, document);

})();

The same content is in 57 releases, Joomla 4.3.0-alpha1 to 5.0.0-alpha1. See them all, or every version of this file.