Open 0ki opened 3 months ago
Confirmed. 2024.8.2, Chrome in Win10 MWE:
type: vertical-stack
cards:
- type: entities
entities:
- input_number.test_level_1
- type: horizontal-stack
cards:
- type: glance
entities:
- input_number.test_level_1
- type: gauge
entity: input_number.test_level_1
Suggest to reflect in the issue's title that this happens when the Gauge card is placed inside a Horizontal stack.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
up
This is not about a horiz stack:
When a card is "small" - the glitch appears:
a value is changed -> _rescale_svg
is called -> viewBox
is redefined & changed-> size of svg element is changed.
When a card is "big" - viewBox
is not changing (probably also redefined - but it's value is same) -> size of svg element is NOT changed.
Checklist
Describe the issue you are experiencing
gauge card text size is jumping around
Describe the behavior you expected
text should not change after a page has loaded (unless maybe the number of digits changes)
Steps to reproduce the issue
What version of Home Assistant Core has the issue?
core-2024.8.2
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:129.0) Gecko/20100101 Firefox/129.0
Which operating system are you using to run this browser?
No response
State of relevant entities
No response
Problem-relevant frontend configuration
Javascript errors shown in your browser console/inspector
No response
Additional information