CoreFiles by mySites.guru
iframe-height.js22 lines, 779 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
111d810e7d710d48853bd1b170108f8d
sha1
cb56de2c73de5185cc538c21555815d5c9247d12
sha256
69afc6a94d7a89485a9b082234955268fd2a649e2ccf503e49ab5d63d3652d29
/**
* 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 = parseInt(height, 10) + 60 + 'px';
    } else if (document.all && iframe.id) {
      document.all[iframe.id].style.height = parseInt(height, 10) + 20 + 'px';
    }
  };
})(window, document);

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