mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #1049] Cannot see text in text area with border set #760
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#760
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 @lexagon3 on GitHub (Oct 31, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/1049
Hi there! I'm new to the library (and Go in general) so apologies if this is expected behaviour or I'm just doing something wrong!
If I add a border to a text area, the text I type is not displayed in the text area:
Removing setting the border then displays text when I type.
Thanks for your help!
@SamWhited commented on GitHub (Nov 3, 2024):
SetBorderreturns a box, not a text area, so you're actually drawing the underlying box but not the text area itself. Modify that to:And everything should work.
@rivo commented on GitHub (Nov 3, 2024):
For details, see the package documentation:
https://pkg.go.dev/github.com/rivo/tview#hdr-Type_Hierarchy
@lexagon3 commented on GitHub (Nov 8, 2024):
Ah! I see. Thank you both for the response and clarification!