mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #430] Fixed TextView on Grid #315
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#315
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 @xidod on GitHub (Apr 12, 2020).
Original GitHub issue: https://github.com/rivo/tview/issues/430
Hello, I have a Grid with some primitive that needs resize but one primitive no, it is a TextView with banner on top left of the terminal with indentation and if I resize the window also the banner in the TextView resize it self and the layout of the banner is destroyed.
Since the Application can hold only one primitive, is possible to have a primitive inside a grid not resizable? Or at least a workaround to this scenario?
Thank you.
@rivo commented on GitHub (Apr 14, 2020):
I'm not exactly sure I understand your explanation but you can set fixed sizes on grid elements with the Grid.SetColumns() and Grid.SetRows() functions.
If this doesn't answer your question, please provide a screenshot or something that illustrates what you would like to achieve.
@xidod commented on GitHub (Apr 14, 2020):
Grid.SetColumns() is exactly what I need.
Thank you!