mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fit map on load (#18819)
This commit is contained in:
parent
843430ef41
commit
07b807adfc
@ -136,7 +136,7 @@ export class HaMap extends ReactiveElement {
|
|||||||
autoFitRequired = true;
|
autoFitRequired = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.autoFit && autoFitRequired) {
|
if (changedProps.has("_loaded") || (this.autoFit && autoFitRequired)) {
|
||||||
this.fitMap();
|
this.fitMap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user