diff --git a/api/js/etemplate/Et2Iframe/Et2Iframe.ts b/api/js/etemplate/Et2Iframe/Et2Iframe.ts
index 0586ca6be8..bc49f7590b 100644
--- a/api/js/etemplate/Et2Iframe/Et2Iframe.ts
+++ b/api/js/etemplate/Et2Iframe/Et2Iframe.ts
@@ -20,6 +20,13 @@ export class Et2Iframe extends Et2Widget(SlotMixin(LitElement))
return [
...super.styles,
css`
+ :host {
+ display: flex;
+ }
+ :host > iframe {
+ width: 100%;
+ height: 100%;
+ }
/* Custom CSS */
`,
];
@@ -43,14 +50,22 @@ export class Et2Iframe extends Et2Widget(SlotMixin(LitElement))
{
super(...args);
}
-
+ get slots()
+ {
+ return {
+ ...super.slots
+ };
+ }
connectedCallback()
{
super.connectedCallback();
}
render() {
- return html` `;
+ return html`
+
+ ${this._label}
+ `;
}
__getIframeNode()