diff --git a/box.go b/box.go index 7aad19c..da9b78b 100644 --- a/box.go +++ b/box.go @@ -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) {