diff --git a/src/core/components/iframe/iframe.ts b/src/core/components/iframe/iframe.ts index 58fd3f82a09..32b7fc15668 100644 --- a/src/core/components/iframe/iframe.ts +++ b/src/core/components/iframe/iframe.ts @@ -48,8 +48,8 @@ export class CoreIframeComponent implements OnChanges, OnDestroy { @Input() src?: string; @Input() id: string | null = null; - @Input() iframeWidth?: string; - @Input() iframeHeight?: string; + @Input() iframeWidth = '100%'; + @Input() iframeHeight = '100%'; @Input() allowFullscreen?: boolean | string; @Input() showFullscreenOnToolbar?: boolean | string; @Input() autoFullscreenOnRotate?: boolean | string;