Fix more info dialog resizing

This commit is contained in:
Paulus Schoutsen 2020-02-05 14:01:23 -08:00
parent 2e4c73c087
commit 77b37bce7e

View File

@ -80,7 +80,7 @@ class HaMoreInfoDialog extends DialogMixin(PolymerElement) {
class="no-padding" class="no-padding"
hass="[[hass]]" hass="[[hass]]"
state-obj="[[stateObj]]" state-obj="[[stateObj]]"
dialog-element="[[_dialogElement]]" dialog-element="[[_dialogElement()]]"
registry-entry="[[_registryInfo]]" registry-entry="[[_registryInfo]]"
large="{{large}}" large="{{large}}"
></more-info-controls> ></more-info-controls>
@ -102,7 +102,6 @@ class HaMoreInfoDialog extends DialogMixin(PolymerElement) {
observer: "_largeChanged", observer: "_largeChanged",
}, },
_dialogElement: Object,
_registryInfo: Object, _registryInfo: Object,
dataDomain: { dataDomain: {
@ -116,9 +115,8 @@ class HaMoreInfoDialog extends DialogMixin(PolymerElement) {
return ["_dialogOpenChanged(opened)"]; return ["_dialogOpenChanged(opened)"];
} }
ready() { _dialogElement() {
super.ready(); return this;
this._dialogElement = this;
} }
_computeDomain(stateObj) { _computeDomain(stateObj) {