question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Automatic layout doesn't work

See original GitHub issue

Checklist:

  • [ X ] I updated to the latest version available
  • [ X ] I cleared the cache of my browser

Release with the issue: 1.2.0

Last working release (if known):

Browser and Operating System: Win10x64 Firefox 81.0.1

Description of problem:

Found a problem with config-template-card. Two or more cards are not distributed properly on the screen - all of them are placed in one column.

How to reproduce:

  1. Add Speedtest integration.
  2. Create an empty tab.
  3. Add a new card:
type: 'custom:config-template-card'
entities:
  - sensor.speedtest_download
  - sensor.speedtest_upload
  - sensor.speedtest_ping
card:
  type: vertical-stack
  cards:
    - type: history-graph
      entities:
        - entity: sensor.speedtest_download
      hours_to_show: 24
    - type: history-graph
      entities:
        - entity: sensor.speedtest_upload
      hours_to_show: 24
    - type: history-graph
      entities:
        - entity: sensor.speedtest_ping
      hours_to_show: 2
  1. The created card is like this: https://community-assets.home-assistant.io/original/3X/f/4/f400502463965a9d1875027ed469efee6999dfa8.jpeg

  2. Then duplicate this card. Two…three cards are enough to see the issue. All cards are placed in one column.

Note, in this example there is no “variables” section - my actual code was like this:

...
variables:
  - 'states[''input_select.graph_hours_to_show_speedtest'']'
...
card:
  type: vertical-stack
  cards:
    - type: history-graph
      entities:
        - entity: sensor.speedtest_download
      hours_to_show: '${vars[0].state}'

I excluded that variable just to simplify the case.

Javascript errors shown in the web inspector (if applicable):


Additional information:

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ildar170975commented, Oct 22, 2021

I managed to bypass the issue by using custom:layout-card with vertical-layout and layout-break.

0reactions
QbaFcommented, Oct 22, 2021

The bypass do works. It could be temporary solution.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Auto Layout doesn't work as needed - Figma Community Forum
I'm hitting a roadblock trying to understand why Auto Layout isn't working. I want the text in the left column to expand to...
Read more >
7 common Figma design problems (and how to fix them)
Practical ways to overcome 7 common Figma design issues, caused by auto layout, constraints, groups, frames, components, and duplicates.
Read more >
Can't seem to make auto layout work right - Apple Developer
So I have a Split View controller for my app. The Master View Controller does not want to layout correctly in different sizes,...
Read more >
Auto Layout not working Checklist
Here is a checklist to troubleshoot why it is not working : If you are adding UIView through code, have you set view. ......
Read more >
UIScrollView and auto layout not working - Stack Overflow
4)add auto layouts to both UIScrollView and View (it's not needed). 5)put your controls in view and add auto layouts to them.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found