All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
info: | |
title: test | |
version: 1.0.0 | |
consumes: | |
- application/json | |
produces: | |
- application/json | |
swagger: '2.0' | |
securityDefinitions: | |
keystone: |
const setFrameHeight = (frameElement, index) => { | |
frameElement.style.height = 'unset'; | |
const iframeElement = document.querySelectorAll('iframe')[index]; | |
const targetHeight = `${ iframeElement.contentWindow.document.body.scrollHeight }px`; | |
iframeElement.style.height = targetHeight; | |
} | |
document.querySelectorAll('.frame').forEach((frameElement, index) => setFrameHeight(frameElement, index)); |