mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #184] Proportional Table #147
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#147
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 @benpye on GitHub (Nov 18, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/184
It would be great to have the ability to set the width of table columns to be proportionate to the parent size. In some cases keeping all three rows visible is important.
@rivo commented on GitHub (Nov 19, 2018):
tviewhas this. Please seeTableCell.SetExpansion()for details.Let me know if this is what you're looking for.
@benpye commented on GitHub (Nov 19, 2018):
Okay, that sort of works if I use
TableCell.SetMaxWidth()also, for example:This seems to result in each being of equal width.
@rivo commented on GitHub (Nov 26, 2018):
Yes. If you want all columns to have the same dynamic width, that's the way to do it.