Box draws texture according to its bounds

This commit is contained in:
Sasha Koshka 2024-05-14 00:19:16 -04:00
parent b9092eae87
commit b926881233

2
box.go
View File

@ -285,7 +285,7 @@ func (this *box) Draw (can canvas.Canvas) {
if this.transparent() && this.parent != nil {
this.parent.drawBackgroundPart(can)
}
pen.Rectangle(can.Bounds())
pen.Rectangle(this.Bounds())
}
func (this *box) drawBorders (can canvas.Canvas) {