Actually call _elementResized if available.

This commit is contained in:
Dermot Duffy
2021-10-01 20:17:50 -07:00
parent 3c10b329a2
commit e5565f964b
+4 -1
View File
@@ -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`
<img
@load=${(e) => {
if (typeof this._elementResized != 'undefined') {
this._elementResized();
}
dispatchMediaLoadEvent(this, e);
}}
.src=${