[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/media/com_wrapper/js/ -> iframe-height.js (source)

   1  /**
   2   * @copyright   (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
   3   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   4   */
   5  ((window, document) => {
   6    window.iFrameHeight = iframe => {
   7      const doc = 'contentDocument' in iframe ? iframe.contentDocument : iframe.contentWindow.document;
   8      const height = parseInt(doc.body.scrollHeight, 10);
   9  
  10      if (!document.all) {
  11        iframe.style.height = `$parseInt(height, 10) + 60}px`;
  12      } else if (document.all && iframe.id) {
  13        document.all[iframe.id].style.height = `$parseInt(height, 10) + 20}px`;
  14      }
  15    };
  16  })(window, document);


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer