mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #957] Adding a border removes the content of the element #701
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#701
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 @justlunix on GitHub (Mar 10, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/957
Hi, I have a problem where when I set the border on an element, the content won't be displayed anymore. I'm probably doing something wrong, so maybe someone can help me.
I think it's because the SetBorder returns a Box, so it "forgets" the other non-box settings. But I don't know how to fix it.
This will result in:

If I remove the border it will display like this:
@justlunix commented on GitHub (Mar 11, 2024):
Well, I knew it was something simple. Of course I need to call the methods without actually replacing the variable by the returned struct. :)