thomasloven / lovelace-auto-entities

🔹Automatically populate the entities-list of lovelace cards
MIT License
1.18k stars 111 forks source link

Panel mode + auto-entities + Map: card is too high #436

Open ildar170975 opened 2 months ago

ildar170975 commented 2 months ago

2024.4.1 1.12.1

Consider this card:

type: custom:auto-entities
card:
  type: map
filter:
  include:
    - entity_id: device_tracker.virtual_tracker_1

on a Panel view.

The card is too high - scrollbars appear, the map is not properly centered: Initially you even cannot see the device_tracker's marker: image

After zooming: image

Note a scrollbar - the card now is not "limited by a viewport".

Compare with a Map card w/o auto-entities: image

Compare with 2023.7.1 + 1.12.1 (Map + auto-entities) - same issue, i.e. it takes place in an old HA version as well: image

Mariusthvdb commented 1 week ago

as the +/- buttons in the screenshot above remain visible, I didnt notice this issue before.

But, this morning in beta, I suddenly noticed that when clicking these buttons only once, they move out of the view:

before:

Scherm­afbeelding 2024-06-27 om 11 10 10

after clicking either + or -"

Scherm­afbeelding 2024-06-27 om 11 10 22

and the only way to get them back is by reloading the view. the center button does not help.

config:

title: Kaart
path: kaart
icon: mdi:map
type: panel
cards:

  - type: custom:auto-entities
    filter:
      include:
        - domain: person
    card:
      type: map
      hours_to_show: 48

listing my person entities verbosely fixes the issue 100%