Et2Dialog: Fix height attribute was not setting dialog height

This commit is contained in:
nathan 2023-11-02 13:03:56 -06:00
parent b759afa57d
commit ba04abd1b4

View File

@ -240,6 +240,10 @@ export class Et2Dialog extends Et2Widget(SlotMixin(SlDialog))
margin-top: 0.5em;
}
.dialog_content {
height: var(--height, auto);
}
/* Non-modal dialogs don't have an overlay */
:host(:not([ismodal])) .dialog, :host(:not([isModal])) .dialog__overlay {
@ -884,7 +888,7 @@ export class Et2Dialog extends Et2Widget(SlotMixin(SlDialog))
}
if(this.height)
{
styles.height = "--height: " + this.height;
styles["--height"] = this.height;
}
return html`