From e5565f964b65deb2944b31f3ce9a444bf4785069 Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Fri, 1 Oct 2021 20:17:50 -0700 Subject: [PATCH] Actually call _elementResized if available. --- src/patches/ha-camera-stream.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/patches/ha-camera-stream.ts b/src/patches/ha-camera-stream.ts index bd69df4b..1bbf315a 100644 --- a/src/patches/ha-camera-stream.ts +++ b/src/patches/ha-camera-stream.ts @@ -43,13 +43,16 @@ customElements.whenDefined('ha-camera-stream').then(() => { return html``; } - // Below .src binding tweaked to work pre/post: + // Below .src/@load bindings tweaked to work pre/post: // - https://github.com/home-assistant/frontend/commit/e963735dbabdc2fea8a95aea325952560c727625 return html` ${this._shouldRenderMJPEG ? html` { + if (typeof this._elementResized != 'undefined') { + this._elementResized(); + } dispatchMediaLoadEvent(this, e); }} .src=${