mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #1033] SetBackgroundColor doesn't work on Box #750
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#750
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 @ardawan on GitHub (Oct 10, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/1033
I'm not sure if this is a bug or I'm not familiar with this package.
Understand that each
Flextype has a*Boxas mentioned in the doc.But when I try to set the background color for the box, nothing will change.
So the question is how can we set a background color for the whole flex primitive?
@rivo commented on GitHub (Oct 16, 2024):
Container primitives such as
FlexorGriddon't clear the screen they occupy. So the background colour is ignored. One of the reasons is that they are used to position other elements on the screen. See for example the Wiki: https://github.com/rivo/tview/wiki/Modal