From 1ec9fa2896521d00f37307891d95a8ee7fc6dd36 Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Thu, 28 Feb 2019 18:52:20 -0800 Subject: [PATCH] Fix widget padding --- block.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block.go b/block.go index 3be9699..f030d88 100644 --- a/block.go +++ b/block.go @@ -91,8 +91,8 @@ func (self *Block) SetRect(x1, y1, x2, y2 int) { self.Inner = image.Rect( self.Min.X+1+self.PaddingLeft, self.Min.Y+1+self.PaddingTop, - self.Max.X-1+self.PaddingRight, - self.Max.Y-1+self.PaddingBottom, + self.Max.X-1-self.PaddingRight, + self.Max.Y-1-self.PaddingBottom, ) }