Skip to content

Column layout does not show "next" columns after first "screen" #415

@joaomcarlos

Description

@joaomcarlos

Describe the bug
If you use WithLayout of LayoutColumns 2 columns, for example, with 3 groups. It will render the first 2 groups, but then when moving to third group it won't be rendered at all.

To Reproduce
Steps to reproduce the behavior:

  1. Paste the example at https://github.com/charmbracelet/huh/blob/main/examples/layout/columns/main.go
  2. go run .
  3. Press enter to get to the Seventh element, which is in third group.
  4. See an empty "screen"

Expected behavior
I expected to see a new screen with 2 columns, showing the third group in the first column and nothing in the second column. If i used 4 groups, i'd expect the second column to now have the forth group.

Screenshots
First "screen" with 2 columns for groups 1 and 2 :
image
Second "screen" for the last group :
image

Desktop (please complete the following information):

  • OS: MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglayout

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions