Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
joaomcarlos opened this issue Sep 15, 2024 · 0 comments
Open

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

joaomcarlos opened this issue Sep 15, 2024 · 0 comments
Labels
bug Something isn't working layout

Comments

@joaomcarlos
Copy link

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
@caarlos0 caarlos0 added bug Something isn't working layout labels Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working layout
Projects
None yet
Development

No branches or pull requests

2 participants