From 72626b0dc2ca191d3a5438b938a24603b2ab9886 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 2 Dec 2022 09:37:22 -0700 Subject: [PATCH] Et2Dialog: Fix width property --- api/js/etemplate/Et2Dialog/Et2Dialog.ts | 4 ++++ 1 file changed, 4 insertions(+) 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()