helto4real / lovelace-custom-cards

Repository for custom-cards for lovelace / Home Assistant
MIT License
9 stars 4 forks source link

The gauge is not shown as half gauge as expected #2

Closed helto4real closed 6 years ago

helto4real commented 6 years ago

The gauge is not showing half the gauge as expected using canvas gauge example.

helto4real commented 6 years ago

This is currently by design. The canvas lib is not setting default values as it should when running under shadow root. As a workaround set all border settings to remove border:

        borderShadowWidth: 0
        borderOuterWidth: 0
        borderMiddleWidth: 0
        borderInnerWidth: 0
        borders: false

This workaround should work until i figured out how to trigger defaults in the canvas lib.

helto4real commented 6 years ago

Fixed with some css magic

helto4real commented 6 years ago

Fixed now