PiotrMachowski/lovelace-xiaomi-vacuum-map-card

Dropdown menu problem with State-switch

NanouMu opened this issue · 0 comments

Checklist

  • I have updated the card to the latest version available
  • I have cleared the cache of my browser
  • I have checked if the problem is already reported

The problem

Hi,
I use the Vacuum Map Card inside a state-switch card from thomasloven
Inside a state-switch card, all dropdown menus of the map card are offset. (no problem without state-switch)
screenshot
The offset is proportional to viewport. (larger is the viewport, bigger is the offset)

Thank you for this great card

What version of a card has described problem?

v2.2.2

What was the last working version card?

No response

What vacuum model do you have problems with?

vacuum.roborock_s8_pro_ultra

Which integration do you use to control your vacuum (link)?

https://github.com/humbertogontijo/homeassistant-roborock

What browser (browsers/apps) does have this problem?

Chrome

What version of Home Assistant do you use?

2023.10.1

What type of installation are you running?

Home Assistant OS

Card's configuration

type: custom:state-switch
entity: hash
default: vacuum
transition: slide-left
transition_time: 300
states:
  vacuum:
    type: custom:xiaomi-vacuum-map-card
    map_source:
      camera: camera.roborock_s8_pro_ultra_map
    calibration_source:
      camera: true
    entity: vacuum.roborock_s8_pro_ultra
    vacuum_platform: default

Javascript errors shown in the browser's console (if applicable)

No response

Additional information

No response