CoreFiles by mySites.guru
iframe-height.js21 lines, 797 bytes, from Joomla_4.0.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha5
md5
671b057239db05ae2dcacb1f327110f3
sha1
27392633dcc90a381b52ec9409fc176675213971
sha256
a37210a8c2ddfec83622e75aa9138f7f7522e2a2744dee716e1ec4199c821ea9
/**
* PLEASE DO NOT MODIFY THIS FILE. WORK ON THE ES6 VERSION.
* OTHERWISE YOUR CHANGES WILL BE REPLACED ON THE NEXT BUILD.
**/

/**
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @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 = "".concat(parseInt(height, 10) + 60, "px");
    } else if (document.all && iframe.id) {
      document.all[iframe.id].style.height = "".concat(parseInt(height, 10) + 20, "px");
    }
  };
})(window, document);

No other release has this exact content. See every version of this file.