shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
iframeAutoSize
Type:Function
Status:stable
Since:1.0.0
Platform:js
@blackbyte.sugar.js.dom.iframe
This function allows you to resize an iframe to fit its content.
Params
- $iframe*-HTMLElement
The iframe element to resize
- settings{}TIFrameAutoSizeSettings
Some settings to configure your iframe auto size
Example
import { iframeAutoSize } from '@blackbyte/sugar/dom';
iframeAutoSize($iframe);Settings
- widthtrueBoolean
Specify if you want to resize the width of the iframe
- heighttrueBoolean
Specify if you want to resize the height of the iframe
Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space