yii2-iframe-resizer
This extension generates auto resizing iframes
Usage
// in your view
echo mikk150\iframeresizer\IframeResizerWidget::widget([
'resizerOptions' => [
'checkOrigin' => false,
'initCallback' => new yii\web\JsExpression('function (e) {console.log(e)}')
],
'options' => [
'src' => 'http://example.org'
],
])
Be sure that your iframe content has mikk150\iframeresizer\IframeResizerContentWindowAsset
registered