Et2Dialog: Fix width property

This commit is contained in:
nathan 2022-12-02 09:37:22 -07:00
parent 70d571f8bf
commit 72626b0dc2

View File

@ -684,6 +684,10 @@ export class Et2Dialog extends Et2Widget(SlotMixin(SlDialog))
render(this._buttonsTemplate(), this);
this.requestUpdate();
}
if(changedProperties.has("width"))
{
this.style.setProperty("--width", this.width ? this.width + "px" : "initial");
}
}
_loadTemplate()