Box draws texture according to its bounds
This commit is contained in:
parent
b9092eae87
commit
b926881233
2
box.go
2
box.go
@ -285,7 +285,7 @@ func (this *box) Draw (can canvas.Canvas) {
|
|||||||
if this.transparent() && this.parent != nil {
|
if this.transparent() && this.parent != nil {
|
||||||
this.parent.drawBackgroundPart(can)
|
this.parent.drawBackgroundPart(can)
|
||||||
}
|
}
|
||||||
pen.Rectangle(can.Bounds())
|
pen.Rectangle(this.Bounds())
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *box) drawBorders (can canvas.Canvas) {
|
func (this *box) drawBorders (can canvas.Canvas) {
|
||||||
|
Reference in New Issue
Block a user