mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #805] Not fill the full width/height in a layout #587
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#587
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tcurdt on GitHub (Jan 31, 2023).
Original GitHub issue: https://github.com/rivo/tview/issues/805
I am struggling with some of the layout specifics. I created this layout by using multiple flex layouts.
Which was quite straight forward. But this way I can only configure ratios.
The dropdowns are filling a full cell while they should only stay at their intrinsic size. Same goes for the button that is way too big. It's fine for the List to fill the available space, but all other controls should not.
The right side looks like this:
I have the feeling I am missing something.
Did I miss something in the docs?
Could you give me some pointers?
@tcurdt commented on GitHub (Jan 31, 2023):
Ahhh! Thanks for that pointer.
When I was trying with a size of 1 the control just disappeared - because the border required a minimum of 3.
But that's just for the direction of the flex.
Is there also a way for the items not to span the full width?
@tcurdt commented on GitHub (Feb 1, 2023):
As said: I did.
But it just disappeared because the border needed at least 3.
Anyway. Clear now.