diff --git a/api/js/etemplate/Et2Dialog/Et2Dialog.ts b/api/js/etemplate/Et2Dialog/Et2Dialog.ts index 015d55ea17..114982d121 100644 --- a/api/js/etemplate/Et2Dialog/Et2Dialog.ts +++ b/api/js/etemplate/Et2Dialog/Et2Dialog.ts @@ -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()