You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is a bug or I'm not familiar with this package.
Understand that each Flex type has a *Box as mentioned in the doc.
typeFlexstruct {
*Box// The items to be positioned.items []*flexItem// FlexRow or FlexColumn.directionint// If set to true, Flex will use the entire screen as its available space// instead its box dimensions.fullScreenbool
}
But when I try to set the background color for the box, nothing will change.
Container primitives such as Flex or Grid don'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
I'm not sure if this is a bug or I'm not familiar with this package.
Understand that each
Flex
type has a*Box
as 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?
The text was updated successfully, but these errors were encountered: