1
0
mirror of https://github.com/rivo/tview.git synced 2025-04-26 13:49:06 +08:00

Merge bcc76efaa54f8d017096e65aa774110f864c2648 into c76f7879f592d17e9e68a1d795a85faae6cb7414

This commit is contained in:
Chris 2024-11-30 23:43:43 +00:00 committed by GitHub
commit 668628c4fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

7
box.go
View File

@ -82,6 +82,13 @@ func NewBox() *Box {
return b
}
// SetDontClear sets whether the draw function
// clears the bg with defined color
func (b *Box) SetDontClear(dontClear bool) *Box {
b.dontClear = dontClear
return b
}
// SetBorderPadding sets the size of the borders around the box content.
func (b *Box) SetBorderPadding(top, bottom, left, right int) *Box {
b.paddingTop, b.paddingBottom, b.paddingLeft, b.paddingRight = top, bottom, left, right