Sha256: bdb5be56d464f9429647691190130b4909212c1afcca358f20c43cbaf7eda9f3
Contents?: true
Size: 385 Bytes
Versions: 2
Compression:
Stored size: 385 Bytes
Contents
import { Controller } from 'stimulus' export default class extends Controller { connect() { this.element.addEventListener('load', () => { setTimeout(() => { let height = this.element.contentDocument.querySelector('body').clientHeight if (height < 200) height = 200 this.element.style.height = `${height}px` }, 500) }) } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
maglevcms-1.1.5 | app/frontend/admin/controllers/iframe_controller.js |
maglevcms-1.1.4 | app/frontend/admin/controllers/iframe_controller.js |