From 77b37bce7ef8d00084c3a5902a0957a956613f86 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 5 Feb 2020 14:01:23 -0800 Subject: [PATCH] Fix more info dialog resizing --- src/dialogs/ha-more-info-dialog.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/dialogs/ha-more-info-dialog.js b/src/dialogs/ha-more-info-dialog.js index 3a34c1cfc9..878f17473d 100644 --- a/src/dialogs/ha-more-info-dialog.js +++ b/src/dialogs/ha-more-info-dialog.js @@ -80,7 +80,7 @@ class HaMoreInfoDialog extends DialogMixin(PolymerElement) { class="no-padding" hass="[[hass]]" state-obj="[[stateObj]]" - dialog-element="[[_dialogElement]]" + dialog-element="[[_dialogElement()]]" registry-entry="[[_registryInfo]]" large="{{large}}" > @@ -102,7 +102,6 @@ class HaMoreInfoDialog extends DialogMixin(PolymerElement) { observer: "_largeChanged", }, - _dialogElement: Object, _registryInfo: Object, dataDomain: { @@ -116,9 +115,8 @@ class HaMoreInfoDialog extends DialogMixin(PolymerElement) { return ["_dialogOpenChanged(opened)"]; } - ready() { - super.ready(); - this._dialogElement = this; + _dialogElement() { + return this; } _computeDomain(stateObj) {